LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-01-2003, 04:27 PM   #1
sqn
Member
 
Registered: Apr 2002
Distribution: Ubuntu, Arch, freeBSD, Slackware
Posts: 210

Rep: Reputation: 30
apache vhosts question


i want to create 2 vhosts for mai web server, running apache 1.3
this will be the config:

NameVirtualHost 111.222.333.444

<VirtualHost 111.222.333.444>
# primary vhost
DocumentRoot /www/subdomain
RewriteEngine On
RewriteRule ^/.* /www/subdomain/index.html

</VirtualHost>

<VirtualHost 111.222.333.444>
DocumentRoot /www/subdomain/www
ServerName www.domain.com
ServerPath /sub1/
RewriteEngine On
RewriteRule ^(/sub1/.*) /www/subdomain$1
</VirtualHost>

<VirtualHost 111.222.333.444>
DocumentRoot /www/subdomain/sub1
ServerName sub1.domain.com
ServerPath /sub1/
RewriteEngine On
RewriteRule ^(/sub1/.*) /www/subdomain$1
</VirtualHost>

<VirtualHost 111.222.333.444>
DocumentRoot /www/subdomain/sub2
ServerName sub2.domain.com
ServerPath /sub2/
RewriteEngine On
RewriteRule ^(/sub2/.*) /www/subdomain$1

</VirtualHost>

the subdomains sub1 and sub2 need to have entries like
sub1 in a 111.222.333.444
....
in namedd, or i can create them without this lines in named.
thx...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting up vhosts in apache 1.3.33 Erik Thorsson Debian 2 01-31-2005 09:46 PM
Help with Vhosts in apache please. GEEF Linux - Software 2 10-29-2004 07:18 PM
apache + dns + vhosts albertos Slackware 1 08-03-2003 07:03 PM
apache 2.0.44 vhosts sqn Slackware 4 06-19-2003 12:54 AM
Vhosts on RH 8.0 - Apache 2.0.40 Drogo Linux - Software 5 02-06-2003 11:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration