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

apache virtual host issues

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  phpModule  
Author Message
mastermali

External


Since: Sep 07, 2003
Posts: 1



(Msg. 1) Posted: Sun Sep 07, 2003 5:03 am
Post subject: apache virtual host issues
Archived from groups: alt>apache>configuration (more info?)

Hi,

I'm trying to set up a simple virtual host in apache, but i'm having
problems with it. My current setup is this.

windows 2000
Apache 2.0.4

i'm using the free dyndns.org service
i have a dynamic ip address
i use a cable modem connected to a router
obviously my computer's address is different from the router's address
which is the address that dyndns.org sees.
I have an option in my router software that allows me to send all port
80 trafic to my computer's ip (i have two computers connected to the
router).


Below is the current setup in the configuration file.

Listen 80

ServerName mainfolder.dyndns.org:80

NameVirtualHost mainfolder.dyndns.org:80

<VirtualHost mainfolder.dyndns.org>
ServerName mainfolder.dyndns.org
DocumentRoot D:\web
</VirtualHost>

<VirtualHost mainfolder.dyndns.org>
ServerName mainserver.dyndns.org
DocumentRoot D:\web\phptrash
</VirtualHost>

<VirtualHost mainfolder.dyndns.org>
ServerName ermal.dyndns.org
DocumentRoot D:\web\ermal
</VirtualHost>

As you can see i have tried to set up 3 diff. addresses to fetch diff
content from diff. directories. What happens is that all the
different addresses lead to the same directory which is the main
directory D:\web.
Can anyone tell me what i am doing wrong or if there is another way of
doing it?

Help will be greatly apreciated.

 >> Stay informed about: apache virtual host issues 
Back to top
Login to vote
pdconetwofour_

External


Since: Jul 02, 2003
Posts: 22



(Msg. 2) Posted: Sun Sep 07, 2003 10:08 pm
Post subject: Re: apache virtual host issues [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

linux box - but im sure the principle is the same
Heres mine - works for my dyndns addresses

from vhosts.conf

################# Named VirtualHosts
NameVirtualHost *
<VirtualHost *>
ServerName add1.dyndns.org
ServerPath /home/httpd/
DocumentRoot /home/httpd/htdocs
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
</VirtualHost>

<VirtualHost *>
ServerName add2.dyndns.org
ServerPath /home/httpd/
DocumentRoot /home/httpd/htdocs
ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/
</VirtualHost>



<VirtualHost *>
ServerName add3.dyndns.org
ServerPath /home/
DocumentRoot /home/mystuff/public_html
Options ExecCGI
ScriptAlias /cgi-bin/ /home/mystuff/cgi-bin/
</VirtualHost>

 >> Stay informed about: apache virtual host issues 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Name based virtual host issues - I am brand new to apache(v2) and am having an issue setting up name based virtual hosting. I wish to quit using IIS and move to apache. the details are as follows local machine name: TPP Domain 1: thepumas.net domain 2: galadrielle.org domain 3:..

Apache Virtual Host & TCP Rejecting - Hi. I would like to know if it would be possible to tcp reject (or drop) requests that don't have a domain name, but only an IP adress. I explain myself : I run a webserver which is accessible through two domain names : www.domain1.com & www.domain2....

Known issues with running Apache and IIS simultaneously? - Hello, My company is considering running Apache and IIS together on one server. I have researched the possibilities of doing this on the web, but I have found little information apart from basic configuration instructions and some known configuration..

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 ]