Welcome to MobyThreads.com!
FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in
All support for the MobyThreads Threaded phpBB MOD can now be found on welsolutions at this forum

forbidden virtualHost

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Apache displaying compressed directories?  
Author Message
schwartz

External


Since: Jul 01, 2003
Posts: 5



(Msg. 1) Posted: Wed Jul 02, 2003 7:35 pm
Post subject: forbidden virtualHost
Archived from groups: alt>apache>configuration (more info?)

snip of my http.conf:

Listen 80
Listen 8080
Listen 8081

NameVirtualHost 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
  ServerAdmin schwartz RemoveThis @cableone.net
  DocumentRoot /usr/local/apache2
  ServerName home.example.com
</VirtualHost>
<VirtualHost 127.0.0.1:8080>
  ServerAdmin schwartz RemoveThis @cableone.net
  DocumentRoot /home/tcnl/public_html
  ServerName tcnl.example.com
</VirtualHost>

I would like to to leave /usr/local/apache2 as the default website,
but want to configure several different sites onto ports 8080 and up.
This is only for a dev server, so i only need to reach these on my
LAN, so i don't really have server names for them? (i know i'll have
to change the ip to get to these from other machines on my lan, but
need to at least get it working locally first)

this is what i get in a browser when i try these from the local
browser:
<a style='text-decoration: underline;' href="http://localhost" target="_blank">http://localhost</a> ----- 403 Forbidden
<a style='text-decoration: underline;' href="http://localhost:80" target="_blank">http://localhost:80</a> ---- 403 Forbidden
<a style='text-decoration: underline;' href="http://localhost:8080" target="_blank">http://localhost:8080</a> ---- 403 Forbidden
<a style='text-decoration: underline;' href="http://localhost:8081" target="_blank">http://localhost:8081</a> ---- directory listing of
/usr/local/apache2/htdocs
<a style='text-decoration: underline;' href="http://localhost:8082" target="_blank">http://localhost:8082</a> ---- Connection was refused.

I understand the results on :8081 and :8082, but don't understand why
others are forbidden? I have set directory permission to 777 on
/home/tcnl/public_html but still get the 403. does this have
something to do with me not having a proper server name?

Thanks for any help, i'm getting very frustrated with this problem.<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: forbidden virtualHost 
Back to top
Login to vote
davide

External


Since: Jul 07, 2003
Posts: 44



(Msg. 2) Posted: Thu Jul 03, 2003 8:06 am
Post subject: Re: forbidden virtualHost [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

dSchwartz <schwartz.DeleteThis@cableone.net> wrote:
 > need to at least get it working locally first)

 > I understand the results on :8081 and :8082, but don't understand why
 > others are forbidden?

You need to have a <Directory> directive specifying what you can do
on each "root" directory for the virtual hosts. Add a

<Directory /where/your/docroot/is/for/the/virtualhost>
  Order allow,deny
  Allow from all
</Directory>

To each VirtualHost entry.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: forbidden virtualHost 
Back to top
Login to vote
Display posts from previous:   
   Web Hosting and Web Master Forums (Home) -> Apache All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]