« Usage of the temp tablespace in Oracle | Home | Setting password for Oracle listener in the script »

Apache rewrite rules for hosting multiple domains

RewriteCond %{HTTP_HOST}  site1.com$ [NC]
RewriteCond %{REQUEST_URI} !^/vhosts/site1/.*$
RewriteRule ^(.*)$  /vhosts/site1/$1 [L]

RewriteCond %{HTTP_HOST}  site2.com$ [NC]
RewriteCond %{REQUEST_URI} !^/vhosts/site2/.*$
RewriteRule ^(.*)$  /vhosts/site2/$1 [L]

TechRepublic has more.

Topics: apache, linux, mod_rewrite | Submitter: admin

2 Responses to “Apache rewrite rules for hosting multiple domains”

  1. checkthis Says:
    March 3rd, 2006 at 7:53 pm

    Could You please add 'Perl' category to the list?
    Is it possible to give the permission to add the categories for other users?

  2. checkthis Says:
    March 4th, 2006 at 1:05 am

    'Add tags' page shows a strange confirmation page ("Your document moved here").

Comments

You must be logged in to post a comment.

Keep on coding