Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th June 2006, 14:45
tommywds tommywds is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default 403 errors and virtual hosts

Hi guys

I've just installed FC5 and I'm want to host a few sites on it. I've read up on Virtual Hosts, and it seams OK and not too complex. So I gave it a stab and made all the settings to the httpd config file. At the end of the file I added the following

Code:
NameVirtualHost *:80
<VirtualHost *:80>
    ServerName bob.office.com
    ServerAdmin bob@office.com
    DocumentRoot /home/tom/public_html
    ErrorLog /home/tom/logs/bob.office.com
</VirtualHost>
I have a DNS server in the building which has a record for bob.office.com to resolve to 192.168.0.145 (the internal address for my Fedora Server)

However now that I have created my Virtual Hosts I get 403 errors every time I visit bob.office.com.

HTML Code:
<h1>Forbidden</h1>
<p>You don't have permission to access /
on this server.</p>
<p>Additionally, a 403 Forbidden
error was encountered while trying to use an ErrorDocument to handle the request.</p>
<hr>
<address>Apache/2.2.0 (Fedora) Server at bob.office.com Port 80</address>
Can anyone point me in the right direction??? I created the folder /home/tom/public_html as user tom and tried as root also but still 403 errors.

Thanks in advance guys.
Reply With Quote
Sponsored Links
  #2  
Old 26th June 2006, 17:22
platd platd is offline
Member
 
Join Date: Apr 2006
Posts: 34
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you setup a virtual host section for the default host ?
Do the other virtual hosts work ?
What does ErrorLog /home/tom/logs/bob.office.com say if any thing.
I think you may need an Allow directive for the newer version of apache for that directory.
I am a bit rusty with apache since moving to lighttpd

Good luck
Reply With Quote
  #3  
Old 26th June 2006, 17:27
tommywds tommywds is offline
Junior Member
 
Join Date: Jun 2006
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi

turns out I needed to change the permissions on the tom folder
Works a treat now

Thanks for you help!
Reply With Quote
  #4  
Old 27th June 2006, 07:09
vlsimpson vlsimpson is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by tommywds
Hi

turns out I needed to change the permissions on the tom folder
Works a treat now

Thanks for you help!
403 Forbidden's are almost always filesystem permission problems.
__________________
SlackHappy:GNU:Linux:Slackware
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users + Domains With Postfix, Courier + MySQL (+SMTP-AUTH, SpamA, ClamAV) brianwc HOWTO-Related Questions 6 9th May 2007 02:44
newbie's question for Configuring Tomcat5 and Apache2 with Virtual Hosts using mod_jk strephon HOWTO-Related Questions 5 8th January 2007 05:19
Virtual users, domains Postfix.. & Squirrelmail laser144 HOWTO-Related Questions 6 4th May 2006 23:23
PHP Errors in the "WEB-FTP" module crudolphy General 9 27th December 2005 20:17
Virtual Users and Domain with Postfix etc - Problems after updating postfix ryv HOWTO-Related Questions 7 22nd November 2005 23:56


All times are GMT +2. The time now is 14:03.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.