Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Virtual Hosts problem

Status
Not open for further replies.

severndigital

IS-IT--Management
Dec 27, 2006
8
US
I have apache22 running on freebsd server. Everything works fine.

I started using virtual hosts and i am running into a problem

I have the default site set as the first VH in the list. and that one comes up perfectly.

here is the first entry
Code:
<VirtualHost *:80>
    ServerAdmin support@pacesetterglobal.com
    DocumentRoot /usr/local/[URL unfurl="true"]www/apache22/data[/URL]
    ServerName rberry
    ServerAlias rberry
</VirtualHost>
the second entry if for workers outside of our building to access
Code:
<VirtualHost *:80>
    ServerAdmin support@pacesetterglobal.com
    DocumentRoot /usr/home/raspberry/timeclock
    ServerName pacevp.selfip.net
    ServerAlias pacevp.selfip.net
    ErrorLog /var/log/pacevp.selfip.net-error_log
    CustomLog /var/log/pacevp.selfip.net-access_log common
</VirtualHost>
when i attempt to access this host, all i get is a 403 Forbidden error.

Is it because i am accessing from within the network??

thanks in advance,
chris
 
i got it to work by using a directory within the apache directory

everything works fine now
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top