LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-05-2002, 10:57 PM   #1
mimi
Member
 
Registered: Apr 2002
Location: Earth globe
Distribution: Red Hat Linux
Posts: 35

Rep: Reputation: 15
Question apache virtual host


Hi dear freinds

I have a stupid problem in my virtual hosts setting.Here is my problem:
assume that my real host is www.x.com.then i setup a virtual host named:www.y.com.
Problem:my www.x.com points to index.html in www.y.com (/www/docs/www.y.com/index.html) instead of ponting to its own root (/var/www/httpd/index.html) .By the way I've checked all the neccessary settings including real host and virtual host directories and their document root's path.
Would u pls help me to solve my problem.
thanx in advance

mimi
 
Old 04-06-2002, 05:11 AM   #2
finegan
Guru
 
Registered: Aug 2001
Location: Dublin, Ireland
Distribution: Slackware
Posts: 5,700

Rep: Reputation: 57
The way I understand it is that you have to have an entry in virtual hosting for both:

NameVirtualHost 216.27.160.12:80
<VirtualHost 216.27.160.12:80>
ServerName clockwatching.net
ServerAdmin root@clockwatching.net
ServerAlias clockwatching.net *.clockwatching.net
DocumentRoot /www_main
</VirtualHost>
<VirtualHost 216.27.160.12:80>
ServerName porchsittingpress.com
ServerAdmin nick@clockwatching.net
ServerAlias porchsittingpress.com *.porchsittingpress.com
DocumentRoot /home/nick/public_html/Porch
CustomLog /var/log/apache/psp_access_log common
ErrorLog /var/log/apache/psp_error_log
</VirtualHost>

Cheers,

Finegan
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache - Name virtual host tisource Linux - Networking 5 03-03-2006 02:52 AM
Apache 2.0 Virtual Host? w0lfeyes Linux - Networking 1 05-03-2004 03:09 PM
apache and virtual host diverge Linux - Networking 2 01-11-2004 02:45 AM
Virtual host and apache Samspeed Linux - General 8 08-06-2003 07:41 AM
apache virtual host navinc Linux - Software 10 05-22-2003 12:16 PM


All times are GMT -5. The time now is 12:53 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration