Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9193373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:08:49+00:00 2026-06-17T21:08:49+00:00

Startting with some simple domain setup : <VirtualHost *:80> ServerName site.com ServerAlias *.site.com DocumentRoot

  • 0

Startting with some simple domain setup :

<VirtualHost *:80>
        ServerName site.com
        ServerAlias *.site.com
        DocumentRoot /path/to/site.com
        <Directory /path/to/site.com>
                AllowOverride all
                Options -MultiViews
        </Directory>
        RewriteEngine On
        RewriteCond %{REQUEST_URI} ^(.*)//(.*)$ [NC]
        RewriteRule . %1/%2 [R=301,L]
        RewriteCond %{HTTP_HOST} ^(.*).site.com$ [NC]
        RewriteRule ^(.*)$ http://site.com$1 [R=301]
        RailsEnv production
</VirtualHost>

So I’m pretty happy, anything put before my domain will be removed and my urls will always be clean : http://site.com

Cool!

** BUT **

I’d like to set a specific subdomain (an exception in that case) which would point to another site on the same server (another folder, another slightly different apache config, etc…)

This setup above will always precedes the one I would do for my ‘exception’ dubdomain.
How could I reach the goal described ? Catch-all apache setup with one (or some more) subdomain setup exceptions ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T21:08:51+00:00Added an answer on June 17, 2026 at 9:08 pm

    Try to add you configuration for desired subdomain above this code, it should help.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have some simple properties tables that all extend a @MappedSuperclass. Each property table
I'm soon going to be starting some iPhone Development (3.0) building a simple app
I am starting to I am learning scala, and trying to build some simple
I want to be able to display some simple chunks of HTML in my
I'm a novice/beginner programmer having problems getting some simple client/server C code working. My
I am building a simple WCF service that has to return some data from
I just starting using ActionBarSherlock for building some simple app, in my first screen
I'm working with some simple django-tastypie Resources with the following problem: Imagine I'm building
Starting with some simple code: trait Moveable[A] { def move(a: A): A } trait
I am writing some simple PHP to receive a POST from another system with

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.