You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Joseph Morgan <jo...@hotmail.com> on 2009/03/26 03:21:13 UTC

[users@httpd] Mangled my Virtual Hosts

I have somehow mangled my virtual hosts.. or so I think.  I have two web 
sites http://www.ProSportsResumes.com, and 
http://www.VideoFortWorth.com, among others hosted on the same machine.  
If you visit http://www.VideoFortWorth.com, you'll see 
"ProSportsResumes" in the title, but the content of both are correct.

My host machine is behind a router with port forwarding turned on.  All 
incoming traffic on port 80 is forwarded to this machine. 

The "hostname" command returns "WEBHOST"

My hosts file has entries like: 

127.0.0.1   localhost
127.0.0.1   www.VideoFortWorth.com
127.0.0.1   www.ProSportsResumes.com

My httpd.conf has this line as it should:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

And my httpd-vhosts.conf has:

NameVirtualHost 127.0.0.1:*

    ServerAdmin admin@prosportsresumes.com
    DocumentRoot X:/webs/ProSportsResumes
    ServerName www.ProSportsResumes.com



    ServerAdmin admin@videofortworth.com
    DocumentRoot X:/webs/VideoFortWorth
    ServerName www.VideoFortWorth.com


Any ideas are appreciated.
Joe Morgan



_________________________________________________________________
Internet Explorer 8 – Now Available. Faster, safer, easier.
http://clk.atdmt.com/MRT/go/141323790/direct/01/

Re: [users@httpd] Mangled my Virtual Hosts

Posted by Krist van Besien <kr...@gmail.com>.
On Thu, Mar 26, 2009 at 3:21 AM, Joseph Morgan
<jo...@hotmail.com> wrote:
> I have somehow mangled my virtual hosts.. or so I think. I have two web
> sites http://www.ProSportsResumes.com, and
> http://www.VideoFortWorth.com, among others hosted on the same machine.
> If you visit http://www.VideoFortWorth.com, you'll see
> "ProSportsResumes" in the title, but the content of both are correct.

If by the "Title" you mean what is shown on the titlebar of your
browser than you have  to look at your html code. The web page title
is not set by apache.

Krist

-- 
krist.vanbesien@gmail.com
krist@vanbesien.org
Bremgarten b. Bern, Switzerland
--
A: It reverses the normal flow of conversation.
Q: What's wrong with top-posting?
A: Top-posting.
Q: What's the biggest scourge on plain text email discussions?

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Mangled my Virtual Hosts

Posted by Christian Buczek <ch...@buczek.de>.
On Thu, 26 Mar 2009 09:58:51 -0500, Justin Pasher
<ju...@newmediagateway.com> wrote:
> Joseph Morgan wrote:
>> I have somehow mangled my virtual hosts.. or so I think. I have two web
>> sites http://www.ProSportsResumes.com, and
>> http://www.VideoFortWorth.com, among others hosted on the same machine.
>> If you visit http://www.VideoFortWorth.com, you'll see
>> "ProSportsResumes" in the title, but the content of both are correct.
> 
> Well, like Krist said, the title is pulled from the HTML. If I visit 
> www.VideoFortWorth.com, I see <title>ProSportsResumes</title> in the 
> HTML (you are using frames and the rest of the content of the page is 
> pulled from http://68.113.201.224/VideoFortWorth).
> 
>> # Virtual hosts
>> Include conf/extra/httpd-vhosts.conf
>>
>> And my httpd-vhosts.conf has:
>>
>> NameVirtualHost 127.0.0.1:*
>>
>> ServerAdmin admin@prosportsresumes.com
>> DocumentRoot X:/webs/ProSportsResumes
>> ServerName www.ProSportsResumes.com
>>
>>
>>
>> ServerAdmin admin@videofortworth.com
>> DocumentRoot X:/webs/VideoFortWorth
>> ServerName www.VideoFortWorth.com
> 
> I assume these are actually in <VirtualHost> containers (they don't show 
> in the email)?

ups - yes - this is in <virtualHost> containers. I don´t know, why my
mailer has omit it :-/

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Mangled my Virtual Hosts

Posted by Justin Pasher <ju...@newmediagateway.com>.
Joseph Morgan wrote:
> I have somehow mangled my virtual hosts.. or so I think. I have two web
> sites http://www.ProSportsResumes.com, and
> http://www.VideoFortWorth.com, among others hosted on the same machine.
> If you visit http://www.VideoFortWorth.com, you'll see
> "ProSportsResumes" in the title, but the content of both are correct.

Well, like Krist said, the title is pulled from the HTML. If I visit 
www.VideoFortWorth.com, I see <title>ProSportsResumes</title> in the 
HTML (you are using frames and the rest of the content of the page is 
pulled from http://68.113.201.224/VideoFortWorth).

> # Virtual hosts
> Include conf/extra/httpd-vhosts.conf
>
> And my httpd-vhosts.conf has:
>
> NameVirtualHost 127.0.0.1:*
>
> ServerAdmin admin@prosportsresumes.com
> DocumentRoot X:/webs/ProSportsResumes
> ServerName www.ProSportsResumes.com
>
>
>
> ServerAdmin admin@videofortworth.com
> DocumentRoot X:/webs/VideoFortWorth
> ServerName www.VideoFortWorth.com

I assume these are actually in <VirtualHost> containers (they don't show 
in the email)?


-- 
Justin Pasher

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] Mangled my Virtual Hosts

Posted by Eric Covener <co...@gmail.com>.
On Thu, Mar 26, 2009 at 5:33 AM, Christian Buczek <ch...@buczek.de> wrote:
>> NameVirtualHost 127.0.0.1:*
> <VirtualHost *:80>

Careful, you need to have a literal match for these pair of arguments
to get things to work properly.

-- 
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


AW: [users@httpd] Mangled my Virtual Hosts

Posted by Christian Buczek <ch...@buczek.de>.
Von: Joseph Morgan [mailto:josephmmorgan@hotmail.com] 
Gesendet: Donnerstag, 26. März 2009 03:21
An: users@httpd.apache.org
Betreff: [users@httpd] Mangled my Virtual Hosts

 

I have somehow mangled my virtual hosts.. or so I think. I have two web 
sites http://www.ProSportsResumes.com, and 
http://www.VideoFortWorth.com, among others hosted on the same machine. 
If you visit http://www.VideoFortWorth.com, you'll see 
"ProSportsResumes" in the title, but the content of both are correct.

My host machine is behind a router with port forwarding turned on. All 
incoming traffic on port 80 is forwarded to this machine. 

The "hostname" command returns "WEBHOST"

My hosts file has entries like: 

127.0.0.1 localhost
127.0.0.1 www.VideoFortWorth.com
127.0.0.1 www.ProSportsResumes.com

My httpd.conf has this line as it should:

# Virtual hosts
Include conf/extra/httpd-vhosts.conf

And my httpd-vhosts.conf has:

NameVirtualHost 127.0.0.1:*

ServerAdmin admin@prosportsresumes.com
DocumentRoot X:/webs/ProSportsResumes
ServerName www.ProSportsResumes.com



ServerAdmin admin@videofortworth.com
DocumentRoot X:/webs/VideoFortWorth
ServerName www.VideoFortWorth.com


Any ideas are appreciated.
Joe Morgan

----------------------------------------------------------------------------
------------------------------------

----------------------------------------------------------------------------
------------------------------------

Hi Joe,

 

I´m not sure, but I mean you must enter another IP for your NameVirtualHost.

 

So your Domain has the public IP .64.202.189.170. That’s  the router with
port forwarding to your webserver in a non-public net (like 10.0.0.x /
192.168.0.y / ..)

If your webserver have the IP 10.0.0.5, for example, you has to be entered
this IP for NameVirtualHost.

 

Another idea is to catch all incoming requests on this webserver like in
this config:

 

..

 

<VirtualHost *:80>

    DocumentRoot (anyPath)

    ServerName www.ProSportsResumes.com

 

    ServerAdmin (anyMailAddy)

    ErrorLog (anyPath)

    CustomLog  (anyPath)

 

      

</VirtualHost>

..

 

 

Hope one of these ideas works,

 

Greats,

Christian Buczek