Welcome to MobyThreads.com!
FAQFAQ   SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log in/Register/PasswordLog in/Register/Password

All virtual sites point to default . . .

 
Goto page 1, 2
   Web Hosting and Web Master Forums (Home) -> Apache RSS
Related Topics:
Virtual hosts: 2 Domains that point to the same directory - Hi there I created two virtual hosts that have the same directory as the *> /web/html a.com *> /web/html b.com..

Default/Virtual server ? - I am new to apache 2.0.40 running on Linux and although I have it working I am unsure what is the best way configure 2 IP based hosts. Example 1. One IP as default server, one as virtual or 2. One IP as virtual, 2nd IP as virtual, with..

default directory in virtual hosts? - Hi, can i make an entry for a default Server in name based virtual hosts what will be used when no entry is found for the give For Apache 1.3.x !

how can I define default virtual host using IP in url ? - I'm using apache 1.3 with several virtual host. Each host has a DNS record from dyndns like foo.com, elsa.org, and they have all the same IP adresse for example). Using url I can correctly access to foo.com..

Virtual sites + certificate [newbie] - Hello, I wonder if there is some way in having on the *same* IP multiple virtual websites and so on having each of them their SSL for https access on same standard server port 443. If I do..
Next:  Apache: use mysql to control virtual host  
Author Message
Joe Befumo

External


Since: Mar 25, 2007
Posts: 17



(Msg. 1) Posted: Sun Mar 25, 2007 5:16 pm
Post subject: All virtual sites point to default . . .
Archived from groups: alt>apache>configuration (more info?)

i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
running. At this point, my httpd.conf looks like the following, but all of
my websites display the Apache test page only.

I've tried replacing the IP addresses with *, but the result is the same.

Anything obviously wrong here?

Thanks.



#

# Use name-based virtual hosting.

#

NameVirtualHost 63.163.109.231



# Where do we put the lock and pif files?

LockFile "/var/lock/httpd.lock"

CoreDumpDirectory "/etc/httpd"

# Defaults for virtual hosts

# Logs



#

# Virtual hosts

#

# Virtual host Default Virtual Host

<VirtualHost 63.163.109.231>

ServerSignature email

DirectoryIndex index.php index.html index.htm index.shtml

LogLevel warn

HostNameLookups off

</VirtualHost>

Joe



# Virtual host rob.befumo.com

<VirtualHost 63.163.109.231>

DocumentRoot /var/www/html/rbefumo

ServerAdmin webmaster.DeleteThis@befumo.com

ServerName rob.befumo.com

ServerSignature email

DirectoryIndex index.html index.htm index.shtml

</VirtualHost>

# Virtual host www.befumo.com

<VirtualHost 63.163.109.231>

DocumentRoot /var/www/html/befumo

ServerAdmin webmaster.DeleteThis@befumo.com

ServerName www.befumo.com

ServerSignature email

DirectoryIndex index.html index.htm index.shtml

</VirtualHost>

# Virtual host www.rootwerx.com

<VirtualHost 63.163.109.231>

DocumentRoot /var/www/html/rootwerx

ServerAdmin webmaster.DeleteThis@befumo.com

ServerName www.rootwerx.com

ServerAlias rootwerx

ServerSignature email

DirectoryIndex index.html index.htm index.shtml

</VirtualHost>

# Virtual host www.PleasantMountPress.com

<VirtualHost 63.163.109.231>

DocumentRoot /var/www/html/pleasantmountpress

ServerAdmin webmaster.DeleteThis@befumo.com

ServerName www.PleasantMountPress.com

ServerAlias pleasantmountpress

ServerSignature email

DirectoryIndex index.html index.htm index.shtml

</VirtualHost>

 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 2) Posted: Sun Mar 25, 2007 5:16 pm
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 25 Mar, 22:16, "Joe Befumo" <j....RemoveThis@nospam.befumo.com> wrote:
> i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
> running. At this point, my httpd.conf looks like the following, but all of
> my websites display the Apache test page only.
>
> I've tried replacing the IP addresses with *, but the result is the same.
>
> Anything obviously wrong here?
>
> Thanks.
>
> #
>
> # Use name-based virtual hosting.
>
> #
>
> NameVirtualHost 63.163.109.231
>
> # Where do we put the lock and pif files?
>
> LockFile "/var/lock/httpd.lock"
>
> CoreDumpDirectory "/etc/httpd"
>
> # Defaults for virtual hosts
>
> # Logs
>
> #
>
> # Virtual hosts
>
> #
>
> # Virtual host Default Virtual Host
>
> <VirtualHost 63.163.109.231>
>
> ServerSignature email
>
> DirectoryIndex index.php index.html index.htm index.shtml
>
> LogLevel warn
>
> HostNameLookups off
>
> </VirtualHost>
>
> Joe
>
> # Virtual host rob.befumo.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/rbefumo
>
> ServerAdmin webmas....RemoveThis@befumo.com
>
> ServerName rob.befumo.com
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>
>
> # Virtual hostwww.befumo.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/befumo
>
> ServerAdmin webmas....RemoveThis@befumo.com
>
> ServerNamewww.befumo.com
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>
>
> # Virtual hostwww.rootwerx.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/rootwerx
>
> ServerAdmin webmas....RemoveThis@befumo.com
>
> ServerNamewww.rootwerx.com
>
> ServerAlias rootwerx
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>
>
> # Virtual hostwww.PleasantMountPress.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/pleasantmountpress
>
> ServerAdmin webmas....RemoveThis@befumo.com
>
> ServerNamewww.PleasantMountPress.com
>
> ServerAlias pleasantmountpress
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>

its working for me

telnet 63.163.109.231 80
GET / HTTP/1.1
Host: rob.befumo.com
User-Agent: alt.apache.config


and


telnet 63.163.109.231 80
GET / HTTP/1.1
Host: www.befumo.com
User-Agent: alt.apache.config

at 2238 GMT

 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 3) Posted: Sun Mar 25, 2007 5:16 pm
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 25 Mar, 23:22, "Joe Befumo" <j... RemoveThis @nospam.befumo.com> wrote:
> I'm using a firewall/switch to switch back and forth between the old
> (working) windows server and the new (problematic) Linux box, until I get
> the latter working properly. When I point to the linux box, regardless of
> which URL I enter, they all give me the default Apache page.
>
> Joe
>
> "shimmyshack" <matt.fa... RemoveThis @gmail.com> wrote in message
>
> news:1174858700.511282.292060@l75g2000hse.googlegroups.com...
>
> > On 25 Mar, 22:16, "Joe Befumo" <j... RemoveThis @nospam.befumo.com> wrote:
> >> i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
> >> running. At this point, my httpd.conf looks like the following, but all
> >> of
> >> my websites display the Apache test page only.
>
> >> I've tried replacing the IP addresses with *, but the result is the same.
>
> >> Anything obviously wrong here?
>
> >> Thanks.
>
> >> #
>
> >> # Use name-based virtual hosting.
>
> >> #
>
> >> NameVirtualHost 63.163.109.231
>
> >> # Where do we put the lock and pif files?
>
> >> LockFile "/var/lock/httpd.lock"
>
> >> CoreDumpDirectory "/etc/httpd"
>
> >> # Defaults for virtual hosts
>
> >> # Logs
>
> >> #
>
> >> # Virtual hosts
>
> >> #
>
> >> # Virtual host Default Virtual Host
>
> >> <VirtualHost 63.163.109.231>
>
> >> ServerSignature email
>
> >> DirectoryIndex index.php index.html index.htm index.shtml
>
> >> LogLevel warn
>
> >> HostNameLookups off
>
> >> </VirtualHost>
>
> >> Joe
>
> >> # Virtual host rob.befumo.com
>
> >> <VirtualHost 63.163.109.231>
>
> >> DocumentRoot /var/www/html/rbefumo
>
> >> ServerAdmin webmas... RemoveThis @befumo.com
>
> >> ServerName rob.befumo.com
>
> >> ServerSignature email
>
> >> DirectoryIndex index.html index.htm index.shtml
>
> >> </VirtualHost>
>
> >> # Virtual hostwww.befumo.com
>
> >> <VirtualHost 63.163.109.231>
>
> >> DocumentRoot /var/www/html/befumo
>
> >> ServerAdmin webmas... RemoveThis @befumo.com
>
> >> ServerNamewww.befumo.com
>
> >> ServerSignature email
>
> >> DirectoryIndex index.html index.htm index.shtml
>
> >> </VirtualHost>
>
> >> # Virtual hostwww.rootwerx.com
>
> >> <VirtualHost 63.163.109.231>
>
> >> DocumentRoot /var/www/html/rootwerx
>
> >> ServerAdmin webmas... RemoveThis @befumo.com
>
> >> ServerNamewww.rootwerx.com
>
> >> ServerAlias rootwerx
>
> >> ServerSignature email
>
> >> DirectoryIndex index.html index.htm index.shtml
>
> >> </VirtualHost>
>
> >> # Virtual hostwww.PleasantMountPress.com
>
> >> <VirtualHost 63.163.109.231>
>
> >> DocumentRoot /var/www/html/pleasantmountpress
>
> >> ServerAdmin webmas... RemoveThis @befumo.com
>
> >> ServerNamewww.PleasantMountPress.com
>
> >> ServerAlias pleasantmountpress
>
> >> ServerSignature email
>
> >> DirectoryIndex index.html index.htm index.shtml
>
> >> </VirtualHost>
>
> > its working for me
>
> > telnet 63.163.109.231 80
> > GET / HTTP/1.1
> > Host: rob.befumo.com
> > User-Agent: alt.apache.config
>
> > and
>
> > telnet 63.163.109.231 80
> > GET / HTTP/1.1
> > Host:www.befumo.com
> > User-Agent: alt.apache.config
>
> > at 2238 GMT

My apache servers here are all bound to their respective static LAN
IPs, I don't have any NICs bound to public IPs and any public IPs in
any config files. So my setup is

NameVirtualHost 10.10.10.56:80

with <VirtualHost 10.10.10.56:80>
...
since I use port forwarding, I know it's not neccessary to hard code
the IP, but I do it becasuse my NIC's is aliased to another IP which
has other stuff running on it.
Also the hosts file on the machines have entries for each domain that
the apache's server, which points to that boxes static IP.
on box 10.10.10.56
10.10.10.56 rob.befumo.com www.befumo.com

box 10.10.10:156
10.10.10.156 rob.befumo.com www.befumo.com

So you are testing from a local machine. That would make a difference
to the packets, if your local machine returns the public DNS entry for
the FQDN you're requesting, it would go to your modem first, not to
the local machine. That would make the next step unpredictable. My
router for instance when it receives a request to a host on the public
IP from inside the LAN returns host not found, whereas some forward
the request on to the right internal host as per your port forwarding
rules for port 80,443, but without the correct host header.
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 4) Posted: Sun Mar 25, 2007 5:16 pm
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 26 Mar, 00:07, "Joe Befumo" <j... RemoveThis @nospam.befumo.com> wrote:
> I can't figure out how to make my firewall/switch direct 8080 to a different
> machine, so I mapped it to the Linux box for the time being.
>
> Joe
>
> "Joe Befumo" <j... RemoveThis @nospam.befumo.com> wrote in message
>
> news:130dpmglttfd66@corp.supernews.com...
>
> > i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
> > running. At this point, my httpd.conf looks like the following, but all of
> > my websites display the Apache test page only.
>
> > I've tried replacing the IP addresses with *, but the result is the same.
>
> > Anything obviously wrong here?
>
> > Thanks.
>
> > #
>
> > # Use name-based virtual hosting.
>
> > #
>
> > NameVirtualHost 63.163.109.231
>
> > # Where do we put the lock and pif files?
>
> > LockFile "/var/lock/httpd.lock"
>
> > CoreDumpDirectory "/etc/httpd"
>
> > # Defaults for virtual hosts
>
> > # Logs
>
> > #
>
> > # Virtual hosts
>
> > #
>
> > # Virtual host Default Virtual Host
>
> > <VirtualHost 63.163.109.231>
>
> > ServerSignature email
>
> > DirectoryIndex index.php index.html index.htm index.shtml
>
> > LogLevel warn
>
> > HostNameLookups off
>
> > </VirtualHost>
>
> > Joe
>
> > # Virtual host rob.befumo.com
>
> > <VirtualHost 63.163.109.231>
>
> > DocumentRoot /var/www/html/rbefumo
>
> > ServerAdmin webmas... RemoveThis @befumo.com
>
> > ServerName rob.befumo.com
>
> > ServerSignature email
>
> > DirectoryIndex index.html index.htm index.shtml
>
> > </VirtualHost>
>
> > # Virtual hostwww.befumo.com
>
> > <VirtualHost 63.163.109.231>
>
> > DocumentRoot /var/www/html/befumo
>
> > ServerAdmin webmas... RemoveThis @befumo.com
>
> > ServerNamewww.befumo.com
>
> > ServerSignature email
>
> > DirectoryIndex index.html index.htm index.shtml
>
> > </VirtualHost>
>
> > # Virtual hostwww.rootwerx.com
>
> > <VirtualHost 63.163.109.231>
>
> > DocumentRoot /var/www/html/rootwerx
>
> > ServerAdmin webmas... RemoveThis @befumo.com
>
> > ServerNamewww.rootwerx.com
>
> > ServerAlias rootwerx
>
> > ServerSignature email
>
> > DirectoryIndex index.html index.htm index.shtml
>
> > </VirtualHost>
>
> > # Virtual hostwww.PleasantMountPress.com
>
> > <VirtualHost 63.163.109.231>
>
> > DocumentRoot /var/www/html/pleasantmountpress
>
> > ServerAdmin webmas... RemoveThis @befumo.com
>
> > ServerNamewww.PleasantMountPress.com
>
> > ServerAlias pleasantmountpress
>
> > ServerSignature email
>
> > DirectoryIndex index.html index.htm index.shtml
>
> > </VirtualHost>

i get 403 forbidden now, so is this just a persmissions error?
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
Joe Befumo

External


Since: Mar 25, 2007
Posts: 17



(Msg. 5) Posted: Sun Mar 25, 2007 6:19 pm
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

That's because now it's running on my old Windoze server ;^)



"shimmyshack" <matt.farey DeleteThis @gmail.com> wrote in message
news:1174858700.511282.292060@l75g2000hse.googlegroups.com...
> On 25 Mar, 22:16, "Joe Befumo" <j... DeleteThis @nospam.befumo.com> wrote:
>> i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
>> running. At this point, my httpd.conf looks like the following, but all
>> of
>> my websites display the Apache test page only.
>>
>> I've tried replacing the IP addresses with *, but the result is the same.
>>
>> Anything obviously wrong here?
>>
>> Thanks.
>>
>> #
>>
>> # Use name-based virtual hosting.
>>
>> #
>>
>> NameVirtualHost 63.163.109.231
>>
>> # Where do we put the lock and pif files?
>>
>> LockFile "/var/lock/httpd.lock"
>>
>> CoreDumpDirectory "/etc/httpd"
>>
>> # Defaults for virtual hosts
>>
>> # Logs
>>
>> #
>>
>> # Virtual hosts
>>
>> #
>>
>> # Virtual host Default Virtual Host
>>
>> <VirtualHost 63.163.109.231>
>>
>> ServerSignature email
>>
>> DirectoryIndex index.php index.html index.htm index.shtml
>>
>> LogLevel warn
>>
>> HostNameLookups off
>>
>> </VirtualHost>
>>
>> Joe
>>
>> # Virtual host rob.befumo.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/rbefumo
>>
>> ServerAdmin webmas... DeleteThis @befumo.com
>>
>> ServerName rob.befumo.com
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>>
>> # Virtual hostwww.befumo.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/befumo
>>
>> ServerAdmin webmas... DeleteThis @befumo.com
>>
>> ServerNamewww.befumo.com
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>>
>> # Virtual hostwww.rootwerx.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/rootwerx
>>
>> ServerAdmin webmas... DeleteThis @befumo.com
>>
>> ServerNamewww.rootwerx.com
>>
>> ServerAlias rootwerx
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>>
>> # Virtual hostwww.PleasantMountPress.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/pleasantmountpress
>>
>> ServerAdmin webmas... DeleteThis @befumo.com
>>
>> ServerNamewww.PleasantMountPress.com
>>
>> ServerAlias pleasantmountpress
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>
> its working for me
>
> telnet 63.163.109.231 80
> GET / HTTP/1.1
> Host: rob.befumo.com
> User-Agent: alt.apache.config
>
>
> and
>
>
> telnet 63.163.109.231 80
> GET / HTTP/1.1
> Host: www.befumo.com
> User-Agent: alt.apache.config
>
> at 2238 GMT
>
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
Joe Befumo

External


Since: Mar 25, 2007
Posts: 17



(Msg. 6) Posted: Sun Mar 25, 2007 6:22 pm
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I'm using a firewall/switch to switch back and forth between the old
(working) windows server and the new (problematic) Linux box, until I get
the latter working properly. When I point to the linux box, regardless of
which URL I enter, they all give me the default Apache page.

Joe

"shimmyshack" <matt.farey.TakeThisOut@gmail.com> wrote in message
news:1174858700.511282.292060@l75g2000hse.googlegroups.com...
> On 25 Mar, 22:16, "Joe Befumo" <j....TakeThisOut@nospam.befumo.com> wrote:
>> i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
>> running. At this point, my httpd.conf looks like the following, but all
>> of
>> my websites display the Apache test page only.
>>
>> I've tried replacing the IP addresses with *, but the result is the same.
>>
>> Anything obviously wrong here?
>>
>> Thanks.
>>
>> #
>>
>> # Use name-based virtual hosting.
>>
>> #
>>
>> NameVirtualHost 63.163.109.231
>>
>> # Where do we put the lock and pif files?
>>
>> LockFile "/var/lock/httpd.lock"
>>
>> CoreDumpDirectory "/etc/httpd"
>>
>> # Defaults for virtual hosts
>>
>> # Logs
>>
>> #
>>
>> # Virtual hosts
>>
>> #
>>
>> # Virtual host Default Virtual Host
>>
>> <VirtualHost 63.163.109.231>
>>
>> ServerSignature email
>>
>> DirectoryIndex index.php index.html index.htm index.shtml
>>
>> LogLevel warn
>>
>> HostNameLookups off
>>
>> </VirtualHost>
>>
>> Joe
>>
>> # Virtual host rob.befumo.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/rbefumo
>>
>> ServerAdmin webmas....TakeThisOut@befumo.com
>>
>> ServerName rob.befumo.com
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>>
>> # Virtual hostwww.befumo.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/befumo
>>
>> ServerAdmin webmas....TakeThisOut@befumo.com
>>
>> ServerNamewww.befumo.com
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>>
>> # Virtual hostwww.rootwerx.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/rootwerx
>>
>> ServerAdmin webmas....TakeThisOut@befumo.com
>>
>> ServerNamewww.rootwerx.com
>>
>> ServerAlias rootwerx
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>>
>> # Virtual hostwww.PleasantMountPress.com
>>
>> <VirtualHost 63.163.109.231>
>>
>> DocumentRoot /var/www/html/pleasantmountpress
>>
>> ServerAdmin webmas....TakeThisOut@befumo.com
>>
>> ServerNamewww.PleasantMountPress.com
>>
>> ServerAlias pleasantmountpress
>>
>> ServerSignature email
>>
>> DirectoryIndex index.html index.htm index.shtml
>>
>> </VirtualHost>
>
> its working for me
>
> telnet 63.163.109.231 80
> GET / HTTP/1.1
> Host: rob.befumo.com
> User-Agent: alt.apache.config
>
>
> and
>
>
> telnet 63.163.109.231 80
> GET / HTTP/1.1
> Host: www.befumo.com
> User-Agent: alt.apache.config
>
> at 2238 GMT
>
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
HansH

External


Since: Dec 08, 2006
Posts: 112



(Msg. 7) Posted: Sun Mar 25, 2007 6:57 pm
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"Joe Befumo" <joe.TakeThisOut@nospam.befumo.com> schreef in bericht
news:130dtibm0856770@corp.supernews.com...
> "shimmyshack" <matt.farey.TakeThisOut@gmail.com> wrote in message
> news:1174858700.511282.292060@l75g2000hse.googlegroups.com...
>>
>> its working for me
>>
>> telnet 63.163.109.231 80
>> GET / HTTP/1.1
>> Host: rob.befumo.com
>> User-Agent: alt.apache.config
>>
>
> I'm using a firewall/switch to switch back and forth between the old
> (working) windows server and the new (problematic) Linux box, until I get
> the latter working properly. When I point to the linux box, regardless of
> which URL I enter, they all give me the default Apache page.
>
Just ot allow some to peek around add an entry to your firewall's forwarding
table to map port 8080 to port 80 on the machine running RH

HansH
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
Joe Befumo

External


Since: Mar 25, 2007
Posts: 17



(Msg. 8) Posted: Sun Mar 25, 2007 6:57 pm
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I can't figure out how to make my firewall/switch direct 8080 to a different
machine, so I mapped it to the Linux box for the time being.

Joe



"Joe Befumo" <joe.RemoveThis@nospam.befumo.com> wrote in message
news:130dpmglttfd66@corp.supernews.com...
> i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
> running. At this point, my httpd.conf looks like the following, but all of
> my websites display the Apache test page only.
>
> I've tried replacing the IP addresses with *, but the result is the same.
>
> Anything obviously wrong here?
>
> Thanks.
>
>
>
> #
>
> # Use name-based virtual hosting.
>
> #
>
> NameVirtualHost 63.163.109.231
>
>
>
> # Where do we put the lock and pif files?
>
> LockFile "/var/lock/httpd.lock"
>
> CoreDumpDirectory "/etc/httpd"
>
> # Defaults for virtual hosts
>
> # Logs
>
>
>
> #
>
> # Virtual hosts
>
> #
>
> # Virtual host Default Virtual Host
>
> <VirtualHost 63.163.109.231>
>
> ServerSignature email
>
> DirectoryIndex index.php index.html index.htm index.shtml
>
> LogLevel warn
>
> HostNameLookups off
>
> </VirtualHost>
>
> Joe
>
>
>
> # Virtual host rob.befumo.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/rbefumo
>
> ServerAdmin webmaster.RemoveThis@befumo.com
>
> ServerName rob.befumo.com
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>
>
> # Virtual host www.befumo.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/befumo
>
> ServerAdmin webmaster.RemoveThis@befumo.com
>
> ServerName www.befumo.com
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>
>
> # Virtual host www.rootwerx.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/rootwerx
>
> ServerAdmin webmaster.RemoveThis@befumo.com
>
> ServerName www.rootwerx.com
>
> ServerAlias rootwerx
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>
>
> # Virtual host www.PleasantMountPress.com
>
> <VirtualHost 63.163.109.231>
>
> DocumentRoot /var/www/html/pleasantmountpress
>
> ServerAdmin webmaster.RemoveThis@befumo.com
>
> ServerName www.PleasantMountPress.com
>
> ServerAlias pleasantmountpress
>
> ServerSignature email
>
> DirectoryIndex index.html index.htm index.shtml
>
> </VirtualHost>
>
>
>
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 9) Posted: Mon Mar 26, 2007 5:56 am
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 26 Mar, 13:01, "Joe Befumo" <j... DeleteThis @nospam.befumo.com> wrote:
> I don't know -- when I go to, say,http://www.befumo.com/(from another
> machine), I'm still seeing the Apache test screen.
>
> Joe
>
> "shimmyshack" <matt.fa... DeleteThis @gmail.com> wrote in message
>
> news:1174865033.088208.106060@n76g2000hsh.googlegroups.com...
>
> > On 26 Mar, 00:07, "Joe Befumo" <j... DeleteThis @nospam.befumo.com> wrote:
> >> I can't figure out how to make my firewall/switch direct 8080 to a
> >> different
> >> machine, so I mapped it to the Linux box for the time being.
>
> >> Joe
>
> >> "Joe Befumo" <j... DeleteThis @nospam.befumo.com> wrote in message
>
> >>news:130dpmglttfd66@corp.supernews.com...
>
> >> > i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
> >> > running. At this point, my httpd.conf looks like the following, but all
> >> > of
> >> > my websites display the Apache test page only.
>
> >> > I've tried replacing the IP addresses with *, but the result is the
> >> > same.
>
> >> > Anything obviously wrong here?
>
> >> > Thanks.
>
> >> > #
>
> >> > # Use name-based virtual hosting.
>
> >> > #
>
> >> > NameVirtualHost 63.163.109.231
>
> >> > # Where do we put the lock and pif files?
>
> >> > LockFile "/var/lock/httpd.lock"
>
> >> > CoreDumpDirectory "/etc/httpd"
>
> >> > # Defaults for virtual hosts
>
> >> > # Logs
>
> >> > #
>
> >> > # Virtual hosts
>
> >> > #
>
> >> > # Virtual host Default Virtual Host
>
> >> > <VirtualHost 63.163.109.231>
>
> >> > ServerSignature email
>
> >> > DirectoryIndex index.php index.html index.htm index.shtml
>
> >> > LogLevel warn
>
> >> > HostNameLookups off
>
> >> > </VirtualHost>
>
> >> > Joe
>
> >> > # Virtual host rob.befumo.com
>
> >> > <VirtualHost 63.163.109.231>
>
> >> > DocumentRoot /var/www/html/rbefumo
>
> >> > ServerAdmin webmas... DeleteThis @befumo.com
>
> >> > ServerName rob.befumo.com
>
> >> > ServerSignature email
>
> >> > DirectoryIndex index.html index.htm index.shtml
>
> >> > </VirtualHost>
>
> >> > # Virtual hostwww.befumo.com
>
> >> > <VirtualHost 63.163.109.231>
>
> >> > DocumentRoot /var/www/html/befumo
>
> >> > ServerAdmin webmas... DeleteThis @befumo.com
>
> >> > ServerNamewww.befumo.com
>
> >> > ServerSignature email
>
> >> > DirectoryIndex index.html index.htm index.shtml
>
> >> > </VirtualHost>
>
> >> > # Virtual hostwww.rootwerx.com
>
> >> > <VirtualHost 63.163.109.231>
>
> >> > DocumentRoot /var/www/html/rootwerx
>
> >> > ServerAdmin webmas... DeleteThis @befumo.com
>
> >> > ServerNamewww.rootwerx.com
>
> >> > ServerAlias rootwerx
>
> >> > ServerSignature email
>
> >> > DirectoryIndex index.html index.htm index.shtml
>
> >> > </VirtualHost>
>
> >> > # Virtual hostwww.PleasantMountPress.com
>
> >> > <VirtualHost 63.163.109.231>
>
> >> > DocumentRoot /var/www/html/pleasantmountpress
>
> >> > ServerAdmin webmas... DeleteThis @befumo.com
>
> >> > ServerNamewww.PleasantMountPress.com
>
> >> > ServerAlias pleasantmountpress
>
> >> > ServerSignature email
>
> >> > DirectoryIndex index.html index.htm index.shtml
>
> >> > </VirtualHost>
>
> > i get 403 forbidden now, so is this just a persmissions error?

This is what I get, also the same when using telnet

#moofus>get -Sxe http://www.befumo.com/
LWP::UserAgent::new: ()
LWP::UserAgent::request: ()
LWP::UserAgent::send_request: GET http://www.befumo.com/
LWP::UserAgent::_need_proxy: Not proxied
LWP::Protocol::http::request: ()
LWP::Protocol::collect: read 1428 bytes
LWP::Protocol::collect: read 1428 bytes
LWP::Protocol::collect: read 1129 bytes
LWP::UserAgent::request: Simple response: Forbidden
GET http://www.befumo.com/ --> 403 Forbidden
Connection: close
Date: Mon, 26 Mar 2007 13:55:04 GMT
Accept-Ranges: bytes
ETag: "4b80a8-f91-3e0aa1c0"
Server: Apache/2.0.52 (Red Hat)
Content-Length: 3985
Content-Type: text/html; charset=ISO-8859-1
Content-Type: text/html; charset=UTF-8
Last-Modified: Tue, 30 Nov 2004 16:25:51 GMT
Client-Date: Mon, 26 Mar 2007 12:54:48 GMT
Client-Peer: 63.163.109.231:80
Client-Response-Num: 1
Title: Test Page for the Apache HTTP Server on Red Hat Enterprise
Linux
....

hope that helps
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 10) Posted: Mon Mar 26, 2007 6:18 am
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 26 Mar, 14:04, "Joe Befumo" <j....RemoveThis@nospam.befumo.com> wrote:
> I went and changed the owner of the directories to "Apache", but that
> doesn't seem to have changed anything.
>
> From the below, I'm guessing that it's showing the Test Page because
> something is forbidden in the directories? I have no clue what else to look
> for.
>
> Thanks again.
>
> Joe
>
> > This is what I get, also the same when using telnet
>
> > #moofus>get -Sxehttp://www.befumo.com/
> > LWP::UserAgent::new: ()
> > LWP::UserAgent::request: ()
> > LWP::UserAgent::send_request: GEThttp://www.befumo.com/
> > LWP::UserAgent::_need_proxy: Not proxied
> > LWP::Protocol::http::request: ()
> > LWP::Protocol::collect: read 1428 bytes
> > LWP::Protocol::collect: read 1428 bytes
> > LWP::Protocol::collect: read 1129 bytes
> > LWP::UserAgent::request: Simple response: Forbidden
> > GEThttp://www.befumo.com/--> 403 Forbidden
> > Connection: close
> > Date: Mon, 26 Mar 2007 13:55:04 GMT
> > Accept-Ranges: bytes
> > ETag: "4b80a8-f91-3e0aa1c0"
> > Server: Apache/2.0.52 (Red Hat)
> > Content-Length: 3985
> > Content-Type: text/html; charset=ISO-8859-1
> > Content-Type: text/html; charset=UTF-8
> > Last-Modified: Tue, 30 Nov 2004 16:25:51 GMT
> > Client-Date: Mon, 26 Mar 2007 12:54:48 GMT
> > Client-Peer: 63.163.109.231:80
> > Client-Response-Num: 1
> > Title: Test Page for the Apache HTTP Server on Red Hat Enterprise
> > Linux
> > ...
>
> > hope that helps

do you have SELinux enabled in your install,

ls --context

which could be your problem.
this page might help you, it briefly explains what types apache is
allowed to serve, and how to test to see if it works (after you have
successfuly seen the test page which you have)
I guess you would build on that to allow a few other directories.
I am by not an expert on SELinux, so I can't help from here!
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 11) Posted: Mon Mar 26, 2007 6:18 am
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 26 Mar, 14:04, "Joe Befumo" <j....RemoveThis@nospam.befumo.com> wrote:
> I went and changed the owner of the directories to "Apache", but that
> doesn't seem to have changed anything.
>
> From the below, I'm guessing that it's showing the Test Page because
> something is forbidden in the directories? I have no clue what else to look
> for.
>
> Thanks again.
>
> Joe
>
> > This is what I get, also the same when using telnet
>
> > #moofus>get -Sxehttp://www.befumo.com/
> > LWP::UserAgent::new: ()
> > LWP::UserAgent::request: ()
> > LWP::UserAgent::send_request: GEThttp://www.befumo.com/
> > LWP::UserAgent::_need_proxy: Not proxied
> > LWP::Protocol::http::request: ()
> > LWP::Protocol::collect: read 1428 bytes
> > LWP::Protocol::collect: read 1428 bytes
> > LWP::Protocol::collect: read 1129 bytes
> > LWP::UserAgent::request: Simple response: Forbidden
> > GEThttp://www.befumo.com/--> 403 Forbidden
> > Connection: close
> > Date: Mon, 26 Mar 2007 13:55:04 GMT
> > Accept-Ranges: bytes
> > ETag: "4b80a8-f91-3e0aa1c0"
> > Server: Apache/2.0.52 (Red Hat)
> > Content-Length: 3985
> > Content-Type: text/html; charset=ISO-8859-1
> > Content-Type: text/html; charset=UTF-8
> > Last-Modified: Tue, 30 Nov 2004 16:25:51 GMT
> > Client-Date: Mon, 26 Mar 2007 12:54:48 GMT
> > Client-Peer: 63.163.109.231:80
> > Client-Response-Num: 1
> > Title: Test Page for the Apache HTTP Server on Red Hat Enterprise
> > Linux
> > ...
>
> > hope that helps

whoops:
http://docs.fedoraproject.org/selinux-apache-fc3/sn-simple-setup.html
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 12) Posted: Mon Mar 26, 2007 7:52 am
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 26 Mar, 15:33, "Joe Befumo" <j... DeleteThis @nospam.befumo.com> wrote:
> > do you have SELinux enabled in your install,
>
> Not sure what this is . . .

looks like you do, try it for /var/www/html/ and /var/www/
basically you have a security enabled linux now, which sets strict
policies for what app can access which file folder etc... the policies
for daemons and servers and so on are all designed to keep these apps
from overstepping their bounds when asked to do so by a malicious
person.
What I would do first is create a test file in the default doc root,
as the URL above suggests and see if you can see that via a browser,
dont worry about vhosts for now.

You might need to adjust the perms but shouldnt think so at this
point, then if you can see this, and now want to create oother doc
roots for each vhost, then you will have to set the perms so that
apache can read and serve those files, your vhost sections seems ok.
As I say I dont know the exact commands, but googling for apache
config red hat 4 selinux should throw up some howtos.
sorry not to be more forthcoming, I have myself strayed away from
selinux because I use so many other apps in conjunction with the
server, that it becomes a nightmare to admin. (IMHO - as a beginner
myself)
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
Joe Befumo

External


Since: Mar 25, 2007
Posts: 17



(Msg. 13) Posted: Mon Mar 26, 2007 8:01 am
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

I don't know -- when I go to, say, http://www.befumo.com/ (from another
machine), I'm still seeing the Apache test screen.

Joe


"shimmyshack" <matt.farey.DeleteThis@gmail.com> wrote in message
news:1174865033.088208.106060@n76g2000hsh.googlegroups.com...
> On 26 Mar, 00:07, "Joe Befumo" <j....DeleteThis@nospam.befumo.com> wrote:
>> I can't figure out how to make my firewall/switch direct 8080 to a
>> different
>> machine, so I mapped it to the Linux box for the time being.
>>
>> Joe
>>
>> "Joe Befumo" <j....DeleteThis@nospam.befumo.com> wrote in message
>>
>> news:130dpmglttfd66@corp.supernews.com...
>>
>> > i've just set up RedHat Rnterprise Linux ES (4), and have gotten Apache
>> > running. At this point, my httpd.conf looks like the following, but all
>> > of
>> > my websites display the Apache test page only.
>>
>> > I've tried replacing the IP addresses with *, but the result is the
>> > same.
>>
>> > Anything obviously wrong here?
>>
>> > Thanks.
>>
>> > #
>>
>> > # Use name-based virtual hosting.
>>
>> > #
>>
>> > NameVirtualHost 63.163.109.231
>>
>> > # Where do we put the lock and pif files?
>>
>> > LockFile "/var/lock/httpd.lock"
>>
>> > CoreDumpDirectory "/etc/httpd"
>>
>> > # Defaults for virtual hosts
>>
>> > # Logs
>>
>> > #
>>
>> > # Virtual hosts
>>
>> > #
>>
>> > # Virtual host Default Virtual Host
>>
>> > <VirtualHost 63.163.109.231>
>>
>> > ServerSignature email
>>
>> > DirectoryIndex index.php index.html index.htm index.shtml
>>
>> > LogLevel warn
>>
>> > HostNameLookups off
>>
>> > </VirtualHost>
>>
>> > Joe
>>
>> > # Virtual host rob.befumo.com
>>
>> > <VirtualHost 63.163.109.231>
>>
>> > DocumentRoot /var/www/html/rbefumo
>>
>> > ServerAdmin webmas....DeleteThis@befumo.com
>>
>> > ServerName rob.befumo.com
>>
>> > ServerSignature email
>>
>> > DirectoryIndex index.html index.htm index.shtml
>>
>> > </VirtualHost>
>>
>> > # Virtual hostwww.befumo.com
>>
>> > <VirtualHost 63.163.109.231>
>>
>> > DocumentRoot /var/www/html/befumo
>>
>> > ServerAdmin webmas....DeleteThis@befumo.com
>>
>> > ServerNamewww.befumo.com
>>
>> > ServerSignature email
>>
>> > DirectoryIndex index.html index.htm index.shtml
>>
>> > </VirtualHost>
>>
>> > # Virtual hostwww.rootwerx.com
>>
>> > <VirtualHost 63.163.109.231>
>>
>> > DocumentRoot /var/www/html/rootwerx
>>
>> > ServerAdmin webmas....DeleteThis@befumo.com
>>
>> > ServerNamewww.rootwerx.com
>>
>> > ServerAlias rootwerx
>>
>> > ServerSignature email
>>
>> > DirectoryIndex index.html index.htm index.shtml
>>
>> > </VirtualHost>
>>
>> > # Virtual hostwww.PleasantMountPress.com
>>
>> > <VirtualHost 63.163.109.231>
>>
>> > DocumentRoot /var/www/html/pleasantmountpress
>>
>> > ServerAdmin webmas....DeleteThis@befumo.com
>>
>> > ServerNamewww.PleasantMountPress.com
>>
>> > ServerAlias pleasantmountpress
>>
>> > ServerSignature email
>>
>> > DirectoryIndex index.html index.htm index.shtml
>>
>> > </VirtualHost>
>
> i get 403 forbidden now, so is this just a persmissions error?
>
 >> Stay informed about: All virtual sites point to default . . . 
Back to top
Login to vote
shimmyshack

External


Since: Dec 08, 2006
Posts: 274



(Msg. 14) Posted: Mon Mar 26, 2007 8:37 am
Post subject: Re: All virtual sites point to default . . . [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On 26 Mar, 16:29, "Joe Befumo" <j....RemoveThis@nospam.befumo.com> wrote:
> Also, if I go to:
>
> http://www.befumo.com/index.htm
>
> now I get a "page not found" error.

cool, thats great, so your server is up and serving from the files in
the default folder, and there doesnt appear to be an index.htm,
whereas there might be an index.html.

You now need to create the folder structure for your vhosts - which I
assume you've done, and set the perms for those folders so they look
the same as those in the default.

Now the server will probably bechrooted (jailed) to below the default
doc root, so you will have to set 3 vhosts, the first vhost will be a
catch all - so that if someone requests a domain your server doesnt
know how to serve it will go there, this can be

/default_root (where you created that test file)
/default_root/catchall
/default_root/vhost1
/default_root/vhost2

then you will add the catch all vhost section at the top above vhost
sections 1 and 2, apache defaults to the top most chost if the
servername isnt matched

now the trick part as far as you're concerned - what command to run to
allow apache to se