LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-04-2002, 05:06 PM   #1
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Rep: Reputation: 30
Angry Apache Virtual Server is Killing Me...


I am trying to set up virtual servers within apache. I want it to be name based. I've read the apache docs and read the other posts on this issue within this site, but still no workie... Here is what I have done: within the httpd.conf file I added the following;
NameVirtualHost 192.168.0.15
<VirtualHost 192.168.0.15>
ServerName www.test.com
ServerAlias test.com *.test.com
DocumentRoot /home/apache/www/test
</VirtualHost>

<VirtualHost 192.168.0.15>
ServerName www.test2.com
ServerAlias test2.com *.test2.com
DocumentRoot /home/apache/www/test2
</VirtualHost>


I added www.test.com and www.test2.com to my host file on my windows machine to reslove to 192.168.0.15. When I attempt to connect to either test.com or test2.com I get;
Forbidden
You don't have permission to access / on this server.


--------------------------------------------------------------------------------

Apache/2.0.43 Server at www.test2.com (same thing for test.com)Port 80

I've tried several other things but am starting to confuse myself...

Any help and suggestions would be appreciated.
 
Old 12-04-2002, 05:08 PM   #2
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Couple more things, I am running it on Suse 8.0 and using the latest version from apache.org
 
Old 12-04-2002, 05:55 PM   #3
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
It looks like you're attepmting to access the /home directory through httpd. This is possible, but not advisable. You can change the permissions on that directory (and the parent directories) so that it is readable by whoever the httpd daemon is running as or world-readable.

If you're just trying to allow users to share html from a dir in their home directories you could have a look at the suse_publichtml.conf and ensure that your machine is configured (it's rc.config in SuSE 7.3...) to use those directives.
 
Old 12-04-2002, 06:29 PM   #4
zuessh
Member
 
Registered: Jun 2002
Location: USA
Distribution: Suse 8.0
Posts: 247

Original Poster
Rep: Reputation: 30
Talking

That seemed to solve a big part of my problem. I moved the documentroot to under apache2, but now I get the index of the dir. It looks like apache maybe doesn't know what file to look for to be the default page (ie index.html) Where can I set that? Thanks
 
Old 12-04-2002, 11:28 PM   #5
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Have a look at your httpd.conf file (or any Include directives as referenced by httpd.conf) for the DirectoryIndex directive. Mine looks like this...
Code:
DirectoryIndex index.html index.htm index.shtml index.cgi

Last edited by mcleodnine; 12-04-2002 at 11:29 PM.
 
  


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
Apache killing my server newlinuxnewbie Linux - General 4 10-12-2005 12:49 AM
Apache Virtual Server g452 Linux - Software 1 05-22-2004 05:06 PM
Apache virtual server problem... :( mtkocak Linux - Networking 2 04-05-2004 08:25 PM
Apache: libhttpd.ep -> hundreds of defunct, killing my server praefex Linux - General 0 02-10-2004 03:14 PM
Apache Virtual Server - 01 bkeating Linux - Software 5 12-05-2002 01:01 AM


All times are GMT -5. The time now is 04:52 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration