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

virtual host document root question

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  SWFs not showing up  
Author Message
newsgroup7

External


Since: Nov 30, 2003
Posts: 8



(Msg. 1) Posted: Mon Dec 01, 2003 2:51 am
Post subject: virtual host document root question
Archived from groups: alt>apache>configuration (more info?)

Apache2 on WinXP home, Its running on my home network so I'm using local
paths (d:\web is my main documentroot dir)

I've got this code seting up Virtual hosts on different ports of my existing
IP... works fine, except it will only point to the main document root..
Why is that? how do I get it to point to different Dirs?


Listen 8085
Listen 5555

NameVirtualHost 66.11.182.11:8085
NameVirtualHost 66.11.182.11:5555

<VirtualHost 66.11.182.11:8085>
ServerName test1
DocumentRoot d:\web\test1\
</VirtualHost>

<VirtualHost 66.11.182.11:5555>
ServerName test2
DocumentRoot d:\web\test2
</VirtualHost>

 >> Stay informed about: virtual host document root question 
Back to top
Login to vote
newsgroup7

External


Since: Nov 30, 2003
Posts: 8



(Msg. 2) Posted: Mon Dec 01, 2003 3:03 am
Post subject: Re: virtual host document root question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Ok I've added the <directory>bit, and still it goes to the main page...
Still confused..

Listen 8085
Listen 5555

NameVirtualHost 66.11.182.11:8085
NameVirtualHost 66.11.182.11:5555

<VirtualHost 66.11.182.11:8085>
ServerName test1
DocumentRoot d:\web\test1\

<Directory D:\web\test1>
Options FollowSymLinks
AllowOverride None
</Directory>

</VirtualHost>

<VirtualHost 66.11.182.11:5555>
ServerName test2
DocumentRoot d:\web\test2

<Directory D:\web\test2>
Options FollowSymLinks
AllowOverride None
</Directory>

</VirtualHost>

 >> Stay informed about: virtual host document root question 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 3) Posted: Mon Dec 01, 2003 9:13 am
Post subject: Re: virtual host document root question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

K-Parker <newsgroup.RemoveThis@karmparker.com> wrote:
 > Ok I've added the <directory>bit, and still it goes to the main page...
 > Still confused..

 > NameVirtualHost 66.11.182.11:8085
 > NameVirtualHost 66.11.182.11:5555

Do not mixup ips with ports, if you have restricted apache to liste
to two ports, it's enough. Just use NameVirtualHost * to connect to
both port at once.

NameVirtualHost *

<VirtualHost *:8085>
ServerName test1
  ...other directives...
</VirtualHost>

<VirtualHost *:5555>
ServerName test2
  ...other directives...
</VirtualHost>


Does test1 and test2 get resolved to your correct IP address?
If you ping test1 and test2 you receive an answer from your server?

Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host document root question 
Back to top
Login to vote
newsgroup7

External


Since: Nov 30, 2003
Posts: 8



(Msg. 4) Posted: Mon Dec 01, 2003 2:36 pm
Post subject: Re: virtual host document root question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

thank you ever so much!!!


"Davide Bianchi" <davideyeahsure.DeleteThis@onlyforfun.net> wrote in message
news:bqem77$21nmtn$2@ID-18487.news.uni-berlin.de...
 > K-Parker <newsgroup.DeleteThis@karmparker.com> wrote:
  > > Ok I've added the <directory>bit, and still it goes to the main page...
  > > Still confused..
 >
  > > NameVirtualHost 66.11.182.11:8085
  > > NameVirtualHost 66.11.182.11:5555
 >
 > Do not mixup ips with ports, if you have restricted apache to liste
 > to two ports, it's enough. Just use NameVirtualHost * to connect to
 > both port at once.
 >
 > NameVirtualHost *
 >
 > <VirtualHost *:8085>
 > ServerName test1
 > ...other directives...
 > </VirtualHost>
 >
 > <VirtualHost *:5555>
 > ServerName test2
 > ...other directives...
 > </VirtualHost>
 >
 >
 > Does test1 and test2 get resolved to your correct IP address?
 > If you ping test1 and test2 you receive an answer from your server?
 >
 > Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: virtual host document root question 
Back to top
Login to vote
newsgroup7

External


Since: Nov 30, 2003
Posts: 8



(Msg. 5) Posted: Wed Dec 03, 2003 2:19 pm
Post subject: Re: virtual host document root question [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

ok really dumb question

I've re-installed apache to another machine and its doing the same thing it
was before, all pointing to the main page...

but I have the same chunk of code that worked (but modified it to work with
the new dir structrue), but doesnt work...

and when I ping test1 I get the error "Ping request could not find host
test1."

Listen 80
Listen 8085
Listen 5555

NameVirtualHost *:8085
NameVirtualHost *:5555

<VirtualHost *:8085>
ServerName test1
DocumentRoot c:\web\028_caferisko\

<Directory c:\web\028_caferisko\>
Options FollowSymLinks
AllowOverride None
</Directory>

</VirtualHost>

<VirtualHost *:5555>
ServerName test2
DocumentRoot c:\web\test2

<Directory c:\web\test2>
Options FollowSymLinks
AllowOverride None
</Directory>

</VirtualHost>
 >> Stay informed about: virtual host document root question 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Document root on another PC - Hi! Using a windows 2000 Network I have got one PC containing all the documents for the internet. The Apache is installed on another PC and I wanted to set the DocumentRoot to the location at the Doecument Server...it doesn't work this way: DocumentRoot....

Why doesnt changing the document root location work? - Hi I am using webmin/apache We have a website setup and working. I want to change where the website is, so i went into webmin>apache>edit directives and changed the document root for my website from /usr/home/philssite to /usr/home/new sa...

Virtual host and cgi Help - iam running slackware 9.0 and apache1.3 webserver. i have set up virtualhost, and have 2 domains on my server, one of my domains(mydoamin2) canīt execute cgi, the other can. I get this in my error.log "Options execCGI is off in this directory"...

Virtual host - Redhat 9.0 [root@linux bin]# ./apachectl start [Sun Aug 17 11:53:43 2003] [warn] module mod_php4.c is already added, skipping [Sun Aug 17 11:53:43 2003] [warn] module php4_module is already loaded, skipping [Sun Aug 17 11:53:43 2003] [warn] VirtualHost....

Virtual Host From PS? - Ok.. so I am running a server with a bunch of virtual hosts.. Someone on one of them is running a PHP script or CGI thats causing problems and im getting huge load spikes and sometimes even crashing the entire server requiring a hard reboot to fix it.. ...
   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 ]