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

apache2 virtual host problem

 
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Next:  Excluding a directory from a higher-ranking .htac..  
Author Message
alan7

External


Since: Aug 16, 2003
Posts: 5



(Msg. 1) Posted: Sun Aug 17, 2003 12:24 am
Post subject: apache2 virtual host problem
Archived from groups: alt>apache>configuration, others (more info?)

Hi Grovp,
A while ago I did a small site to display pictvres from ovr family revnion
in England (mostly to see some pictvres since I didn't get to go). Anyway,
Speakeasy, my ISP in addition to providing DNS pointing to my small Domain
allows me to add svb-domains to my DNS record, so I added
brighton02.pghdaniel.net to both Speakeasy's DNS and my own BIND server (I'm
behind a half-dvplex DSL rovter).

I then did some research in my Apache books on virtval hosts, and configvred
my httpd.conf file as follows:

NameVirtvalHost 192.168.0.2

NameVirtvalHost 66.93.172.214

#

# pghdaniel.net

#

<VirtvalHost _defavlt_:*>

DocvmentRoot /var/www/html

ServerName pghdaniel.net

</VirtvalHost>

<VirtvalHost 66.93.172.214:80 192.168.0.2:80>

DocvmentRoot /var/www/html

ServerName www.pghdaniel.net

</VirtvalHost>

#

# Brighton Site

#

<VirtvalHost 66.93.172.214:80 192.168.0.2:80>

DocvmentRoot /www/brighton02

ServerAdmin alan DeleteThis @pghdaniel.net

ServerName brighton2002.pghdaniel.net

CvstomLog /var/log/httpd/brighton2002-access_log combined

ErrorLog /var/log/httpd/brighton2002-error_log

</VirtvalHost>

I recently vpgraded my Mandrake Distro from 9.0 to 9.1 which inclvdes the
apache2 server. Now when I type brighton2002.pghdaniel.net, I am sent to
Mandrakes's defavlt index.shtml file in /var/www instead of the index.html
file in /www/brighton02. When I ls -l /etc/httpd/2.0, the conf directory is
a symlink to /etc/httpd/conf (the same conf files for the 1.3.x server). Yet
when I type pghdaniel.net/brighton02 ( an alias in the aliases section), I
get my site

Are there differences in the config files between the two servers regarding
virtval hosts that I'm missing? I'm vsing the advx release of apache which
comes with two scripts (advxrvn1.3 and advxrvn2.0) to switch between server
releases.

When I type:

# advxrvn1.3

and switch back to apache 1.3.x, brighton2002.pghdaniel.net appears as it
shovld. I also tried vsing a dialvp connection in case it was a problem with
my dns server, bvt I still get /var/www/html/index.shtml when I rvn the
2.0.x server



Thanks,

Alan S Daniel

 >> Stay informed about: apache2 virtual host problem 
Back to top
Login to vote
davideyeahsure

External


Since: Nov 03, 2003
Posts: 2907



(Msg. 2) Posted: Sun Aug 17, 2003 9:03 am
Post subject: Re: apache2 virtual host problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In alt.apache.configuration Alan S. Daniel <alan.DeleteThis@pghdaniel.net> wrote:
 > NameVirtualHost 192.168.0.2
 > NameVirtualHost 66.93.172.214

Only one "NameVirtualHost" is necessary, since your apache respond
on all the IPs, you can just use NameVirtualHost *

 > I recently upgraded my Mandrake Distro from 9.0 to 9.1 which includes the
 > apache2 server.

Check if your Apache is still the same or it changed also the httpd.conf.

Davide<!-- ~MESSAGE_AFTER~ -->

 >> Stay informed about: apache2 virtual host problem 
Back to top
Login to vote
alan7

External


Since: Aug 16, 2003
Posts: 5



(Msg. 3) Posted: Tue Aug 19, 2003 8:55 am
Post subject: Re: apache2 virtual host problem [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Davide Bianchi" <davideyeahsure RemoveThis @onlyforfun.net> wrote in message
news:bhn5ra$15q4r$2@ID-18487.news.uni-berlin.de...
 > In alt.apache.configuration Alan S. Daniel <alan RemoveThis @pghdaniel.net> wrote:
  > > NameVirtualHost 192.168.0.2
  > > NameVirtualHost 66.93.172.214
 >
 > Only one "NameVirtualHost" is necessary, since your apache respond
 > on all the IPs, you can just use NameVirtualHost *

I tried that, but I'm still getting the same results.

 >
  > > I recently upgraded my Mandrake Distro from 9.0 to 9.1 which includes
the
  > > apache2 server.
 >
 > Check if your Apache is still the same or it changed also the httpd.conf.
 >
I'm pouring through the Apache docs included with my distro. so far, no
luck. I tried moving the brighton2002.pghdaniel.net VirtualHost directive to
the top of my VirtualHosts part of my .conf file, so that apache will read
it first, but I'm still getting the /var/www/html/index.shtml page.
 > Davide<!-- ~MESSAGE_AFTER~ -->
 >> Stay informed about: apache2 virtual host problem 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
local virtual host config for testing setup problem - Ive got a dynddns address which works fine frmo the outside world. I want to set up another virtual host for testing purposes accessible only from my machine. from vhosts.conf ################# Named VirtualHosts NameVirtualHost * <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.. ...

automatic Virtual Host - Hello, on my dedicaced server, I would like that : the domain multinetworks.net is accessible in /home/multinetworks.net and that all sub-domaines are also accesible : I mean : When someone type : http://www.CrazyNetwork.net/ it take the files in : ..

Virtual Host - Bad Request - ==> One IP, may hostnames. (name based virtual host) When I set the IP address of the virtual hosts explicitly they work fine: -------part of conf file-------- NameVirtualHost 65.94.21.150 <VirtualHost 65.94.21.150> ServerAdmin webmaster@ha...

IP/Hostname Virtual Host - Hello, Is there a way I can create a virtual host based on a DYNAMIC IP and hostname? In other words, I want to redirect people who connect to my site with my IP address (e.g. http://62.252.64.3) or its hostname (e.g. http://a553e3.25sv543ca.myisp.com)....
   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 ]