Re: [EMAIL PROTECTED] virtual hosting not working

2008-07-13 Thread Lester Caine

Mike Brown wrote:

On Mon, Jul 14, 2008 at 11:35:41AM +1000, Res wrote:


Do you run your own (caching) DNS server?


Nope.

If so set up two views, one external that the world gets (your routable IP 
number of 75.100.112.198), the second view will have the domain with its 
internal LAN IP.


The keeper of vidiot.com hosting to the outside world is via the nameserver
in Maryland (DC suburb).

It is beginning to look like I need to bring up the DNS server and place it
first in my resolv.conf file and have it point at my local IP.


I have the same problem here with lsces.co.uk
I simply added the local IP address for the machine that is hosting that 
INSIDE the modem to the host file of the local machines.
Alternatively if I have a new machine up I just use the local IP address 
rather than lsces.co.uk in the address.
My laptop finds the local address via the internal wireless and the internet 
address when I'm out on the road - but that seems to be a bit of black magic :)


--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/lsces/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php

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



Re: [EMAIL PROTECTED] virtual hosting not working

2008-07-13 Thread Mike Brown
On Mon, Jul 14, 2008 at 11:35:41AM +1000, Res wrote:

> Do you run your own (caching) DNS server?

Nope.

> If so set up two views, one external that the world gets (your routable IP 
> number of 75.100.112.198), the second view will have the domain with its 
> internal LAN IP.

The keeper of vidiot.com hosting to the outside world is via the nameserver
in Maryland (DC suburb).

It is beginning to look like I need to bring up the DNS server and place it
first in my resolv.conf file and have it point at my local IP.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

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



Re: [EMAIL PROTECTED] virtual hosting not working

2008-07-13 Thread Mike Brown
On Sun, Jul 13, 2008 at 08:33:58PM -0400, Frank Gingras wrote:
> Mike,
>
> The output looks good.
>
> I can even reach http://www.vidiot.com/ and http://www.vidiot.com/TVShows/ 
> from here.
>
> The problem you're most likely experiencing is that www.vidiot.com resolves 
> to 75.100.112.198 (your public IP). So a request to that host is routed to 
> the external interface of your router, then not re-routed properly inside 
> your LAN.

Found out what is going on.  The lookup of vidiot.com says that it needs to
go outside of the box.  Fine and dandy.  What is wrong is that the DSL
modem/router knows that it is that address.  When it gets a request from the
LAN, it keeps it and points the http request at the internal DSL web server.
An http request coming in from the WAN port, is routed to 192.168.1.1, as
configured.

> What you need to do is make all the values of ServerName and ServerAlias 
> resolve to your local IP, via your local DNS subsystem, or your hosts file. 
> Your problem will be resolved then.
>
> Alternately, you could configure your router to add a few routes to prevent 
> the request from going out at all.

I'm not sure which of the two I'll do.  Whatever I do has to not break other
things, like mail :-)

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

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



Re: [EMAIL PROTECTED] virtual hosting not working

2008-07-13 Thread Frank Gingras

Mike,

The output looks good.

I can even reach http://www.vidiot.com/ and 
http://www.vidiot.com/TVShows/ from here.


The problem you're most likely experiencing is that www.vidiot.com 
resolves to 75.100.112.198 (your public IP). So a request to that host 
is routed to the external interface of your router, then not re-routed 
properly inside your LAN.


What you need to do is make all the values of ServerName and ServerAlias 
resolve to your local IP, via your local DNS subsystem, or your hosts 
file. Your problem will be resolved then.


Alternately, you could configure your router to add a few routes to 
prevent the request from going out at all.


Frank

Mike Brown wrote:

On Sun, Jul 13, 2008 at 06:05:39PM -0400, Frank Gingras wrote:
  

Mike,

Can you please provide the output from httpd -S? It would give us valuable 
information on your issue.



Here ya go:

mrvideo.ZROOT <48> ../bin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80   is a NameVirtualHost
 default server www.vidiot.com (/usr/local/apache2/conf/httpd.conf:481)
 port 80 namevhost www.vidiot.com 
(/usr/local/apache2/conf/httpd.conf:481)
Syntax OK

Thanks.

MB
  



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



Re: [EMAIL PROTECTED] virtual hosting not working

2008-07-13 Thread Mike Brown
On Sun, Jul 13, 2008 at 06:05:39PM -0400, Frank Gingras wrote:
> Mike,
>
> Can you please provide the output from httpd -S? It would give us valuable 
> information on your issue.

Here ya go:

mrvideo.ZROOT <48> ../bin/httpd -S
VirtualHost configuration:
wildcard NameVirtualHosts and _default_ servers:
*:80   is a NameVirtualHost
 default server www.vidiot.com (/usr/local/apache2/conf/httpd.conf:481)
 port 80 namevhost www.vidiot.com 
(/usr/local/apache2/conf/httpd.conf:481)
Syntax OK

Thanks.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

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



Re: [EMAIL PROTECTED] virtual hosting not working

2008-07-13 Thread Frank Gingras

Mike,

Can you please provide the output from httpd -S? It would give us 
valuable information on your issue.


Frank

Mike Brown wrote:

Up until recently, the following hasn't been a problem.  Now I am trying to
get mailman working and I'm hitting a frustrating brick wall.

The setup is that the Solaris 10 x86 server is on the inside of a DSL static IP.
So, I normally get at my web pages locally by going through localhost.

The apache2 server refuses to send out the web pages using vidiot.com, as it
get the error:

401 Unauthorized
Authorization required for the URL '/'.

i.e., it brought up a WebAdmin login GUI.  Wrong.

Trying to go to a specific web directory results in:

404 Not Found
The requested URL '/TVShows/' was not found on this server.

Again, wrong.

Now, when I try and use localhost, or 192.168.1.1, to create a mailman maillist,
it gets the error:

Error: Unknown virtual host: localhost

This is driving me up the wall.

I have the following entries in my config file:

Listen 192.168.1.1:80
Listen 127.0.0.1:80
ServerName www.vidiot.com:80
DocumentRoot "/WebDisk/http/htdocs/vidiot"

Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all


Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
CheckSpelling on

NameVirtualHost *:80

DocumentRoot "/WebDisk/http/htdocs/vidiot"
ServerName www.vidiot.com
ServerAlias localhost vidiot.com *.vidiot.com


If you need to see other entries, let me know.

Any and all help in getting this to work will be greatly appreciated.

Thanks in advance.

MB
  



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



[EMAIL PROTECTED] virtual hosting not working

2008-07-13 Thread Mike Brown
Up until recently, the following hasn't been a problem.  Now I am trying to
get mailman working and I'm hitting a frustrating brick wall.

The setup is that the Solaris 10 x86 server is on the inside of a DSL static IP.
So, I normally get at my web pages locally by going through localhost.

The apache2 server refuses to send out the web pages using vidiot.com, as it
get the error:

401 Unauthorized
Authorization required for the URL '/'.

i.e., it brought up a WebAdmin login GUI.  Wrong.

Trying to go to a specific web directory results in:

404 Not Found
The requested URL '/TVShows/' was not found on this server.

Again, wrong.

Now, when I try and use localhost, or 192.168.1.1, to create a mailman maillist,
it gets the error:

Error: Unknown virtual host: localhost

This is driving me up the wall.

I have the following entries in my config file:

Listen 192.168.1.1:80
Listen 127.0.0.1:80
ServerName www.vidiot.com:80
DocumentRoot "/WebDisk/http/htdocs/vidiot"

Options FollowSymLinks
AllowOverride None
Order deny,allow
Deny from all


Options Indexes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
CheckSpelling on

NameVirtualHost *:80

DocumentRoot "/WebDisk/http/htdocs/vidiot"
ServerName www.vidiot.com
ServerAlias localhost vidiot.com *.vidiot.com


If you need to see other entries, let me know.

Any and all help in getting this to work will be greatly appreciated.

Thanks in advance.

MB
-- 
e-mail: [EMAIL PROTECTED]/~\ The ASCII
[I've been to Earth.  I know where it is. ]  \ / Ribbon Campaign
[And I'm gonna take us there.Starbuck  3/25/07]   X  Against
Visit - URL: http://vidiot.com/  / \ HTML Email

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