You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by RYAN vAN GINNEKEN <lu...@computerking.ca> on 2005/04/03 23:15:37 UTC

[users@httpd] virtual server not seen exterally

I have set up several virtual host containers in ssl.conf one of which 
looks like this.

</Virtual>

<Virtual *:9000>
##
##Computerking.ca DBMA interface
##
DocumentRoot "/usr/local/www/DBMA/dbmailadministrator"
ServerName dbma.computerking.ca:9000
ServerAdmin rmvg@computerking.ca
ErrorLog /var/log/apache2/dbma.computerking.ca.ssl-httpd-error.log
TransferLog /var/log/apache2/dbma.computerking.ca.ssl-httpd-access.log
SSLEngine on
SSLCipherSuite 
ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
SSLCertificateFile /usr/local/sslcerts/certs/mail-cert.pem
SSLCertificateKeyFile /usr/local/sslcerts/certs/mail-key.pem

#leave this 
off??==============================================================
#SSLOptions +FakeBasicAuth +ExportCertData +CompatEnvVars +StrictRequire
#==============================================================================

<Directory "/usr/local/www/DBMA/dbmailadministrator">
  AllowOverride None
  Options ExecCGI MultiViews
  Order allow,deny
  Allow from all
  AuthUserFile /usr/local/wwwpasswd/.htpasswd
  AuthGroupFile "wheel"
  AuthType Basic
  AuthName "Administration Only.  Please enter username and password."
  require valid-user
  order allow,deny
</Directory>

<Files ~ "\.(cgi|shtml|phtml|php3?)$">
   SSLOptions +StdEnvVars
</Files>
</Virtual>


I can see this host fine from inside my network but it does not work from 
the outside world.  NOTE i can ping the address from the outside so my dns 
is working.  My other virtual host seems to work fine from both the inside 
and outside network.


---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by Noah <si...@onastick.net>.
On Sun, Apr 03, 2005 at 09:47:52PM -0600, RYAN vAN GINNEKEN wrote:
> >>> $ host dbma.computerking.ca
> >>> Host dbma.computerking.ca not found: 2(SERVFAIL)
> >>>
> that is very strage cause this is what i get when i do a lookup on a 3rd 
> party dns lookup (kloth.net)

Ok, *now* I'm getting DNS:

$ host dbma.computerking.ca
dbma.computerking.ca is an alias for computerking.ca.
computerking.ca has address 68.146.204.152

> I have even tried changing the port to 19000 and still nothing. can you 
> give it a try at 19000

Nothing's listening there: 

$ telnet 68.146.204.152 19000
Trying 68.146.204.152...
telnet: Unable to connect to remote host: Connection refused

Recall that you need to change three settings:

Listen
NameVirtualHost
<VirtualHost>

You're not running iptables or some such, are you?

--n

-- 
"Any system shall not harm your content or, through 
inaction, allow your content to come to harm."
                            - Jeff Raskin

---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by RYAN vAN GINNEKEN <lu...@computerking.ca>.

--On Sunday, April 03, 2005 9:18 PM -0400 Noah <si...@onastick.net> wrote:

> On Sun, Apr 03, 2005 at 07:08:15PM -0600, RYAN vAN GINNEKEN wrote:
>> > Noah wrote:
>> >
>> > OK, so *something* is listening on port 9000; for now, we'll assume
>> > it's Apache. Do you have a NameVirtualHost directive set up?
>> >
>> Not sure i have this in ssl.conf
>
> [snip]
>
> Looks ok, more or less.
>
>> I do have this "NameVirtualHost *:80" in my http.conf and have added
>>
>> NameVirtualHost *:9000
>> NameVirtualHost *:9001
>> NameVirtualHost *:443
>>
>> to my ssl.conf file is this correct ?
>
> Yep.
>
>
>> > What's the IP
>> > address of your server?
>> >
>> 68.146.204.152
>
> publicly routable IP. good, good.
>
static too my isp is charging me big bucks for it

>> > When you try and hit the website from a browser,
>> > are you specifying port 9000?
>> >
>> yes like this https://dbma.computerking.ca:9000/
>>
>> > Are there any firewalls blocking access to
>> > port 9000 from the outside?
>> >
>> Not that i know of have firewall type set to open
>
> Well, I can't hit that IP address from here (on port 9000; I *can* hit
> it on port 9001);
>
>> > Additionally, I note that 'dbma.computerking.ca'
>> > is not in DNS:
>> >
>> > $ host dbma.computerking.ca
>> > Host dbma.computerking.ca not found: 2(SERVFAIL)
>> >
that is very strage cause this is what i get when i do a lookup on a 3rd 
party dns lookup (kloth.net)

DNS server handling your query: ns1.kloth.net
 DNS server's address:	213.133.98.149#53

 Non-authoritative answer:
 dbma.computerking.ca	canonical name = computerking.ca.

 Authoritative answers can be found from:
 computerking.ca	nameserver = ns1.computerking.ca.
 computerking.ca	nameserver = ns1.shoemasters.com.
 ns1.shoemasters.com	internet address = 68.144.196.18

I have even tried changing the port to 19000 and still nothing. can you 
give it a try at 19000



>> >
>> It is only a cname would that cause servfail
>
> Nope; a CNAME would cause output similar to this:
>
> $ host dbma.example.com
> dbma.example.com is an alias for www.example.com.
> example.com has address 192.168.1.100
>
> --n
> --
> "Any system shall not harm your content or, through
> inaction, allow your content to come to harm."
>                             - Jeff Raskin
>
> ---------------------------------------------------------------------
> 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
>





---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by Noah <si...@onastick.net>.
On Sun, Apr 03, 2005 at 07:08:15PM -0600, RYAN vAN GINNEKEN wrote:
> > Noah wrote:
> >
> >OK, so *something* is listening on port 9000; for now, we'll assume it's
> >Apache. Do you have a NameVirtualHost directive set up?
> >
> Not sure i have this in ssl.conf

[snip]

Looks ok, more or less. 

> I do have this "NameVirtualHost *:80" in my http.conf and have added
> 
> NameVirtualHost *:9000
> NameVirtualHost *:9001
> NameVirtualHost *:443
>
> to my ssl.conf file is this correct ?

Yep.


> >What's the IP
> >address of your server?
> >
> 68.146.204.152

publically routable IP. good, good.

> >When you try and hit the website from a browser,
> >are you specifying port 9000?
> >
> yes like this https://dbma.computerking.ca:9000/
> 
> >Are there any firewalls blocking access to
> >port 9000 from the outside? 
> >
> Not that i know of have firewall type set to open

Well, I can't hit that IP address from here (on port 9000; I *can* hit
it on port 9001);

> >Additionally, I note that 'dbma.computerking.ca' 
> >is not in DNS:
> >
> >$ host dbma.computerking.ca     
> >Host dbma.computerking.ca not found: 2(SERVFAIL)
> > 
> >
> It is only a cname would that cause servfail

Nope; a CNAME would cause output similar to this:

$ host dbma.example.com
dbma.example.com is an alias for www.example.com.
example.com has address 192.168.1.100

--n
-- 
"Any system shall not harm your content or, through 
inaction, allow your content to come to harm."
                            - Jeff Raskin

---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by RYAN vAN GINNEKEN <lu...@computerking.ca>.
Noah wrote:

>On Sun, Apr 03, 2005 at 05:05:27PM -0600, RYAN vAN GINNEKEN wrote:
> 
>  
>
>>>On Sun, Apr 03, 2005 at 04:18:30PM -0600, RYAN vAN GINNEKEN wrote:
>>>
>>>      
>>>
>>>>>>I can see this host fine from inside my network but it does not work
>>>>>>from  the outside world.
>>>>>>            
>>>>>>
>>>Linux:
>>># netstat -ant | grep LIST
>>>
>>>      
>>>
>>tcp46      0      0  *.9001                 *.*                    LISTEN
>>tcp46      0      0  *.9000                 *.*                    LISTEN
>>    
>>
>
>OK, so *something* is listening on port 9000; for now, we'll assume it's
>Apache. Do you have a NameVirtualHost directive set up?
>
Not sure i have this in ssl.conf

##
## SSL Virtual Host Context
##

<VirtualHost *:443>
virtual host contanianer example #1
blah
blah
blah
</VirtualHost>

<VirtualHost *:9000>
##
##Computerking.ca DBMA interface
##
DocumentRoot "/usr/local/www/DBMA/dbmailadministrato
the rest of the virt host container i already gave you.

</VirtualHost>

and then one more virtual host listening on 9001

I do have this "NameVirtualHost *:80" in my http.conf and have added

NameVirtualHost *:9000
NameVirtualHost *:9001
NameVirtualHost *:443

to my ssl.conf file is this correct ?


> What's the IP
>address of your server?
>
68.146.204.152

> When you try and hit the website from a browser,
>are you specifying port 9000?
>
yes like this https://dbma.computerking.ca:9000/

> Are there any firewalls blocking access to
>port 9000 from the outside? 
>
Not that i know of have firewall type set to open

>Additionally, I note that 'dbma.computerking.ca' 
>is not in DNS:
>
>$ host dbma.computerking.ca     
>Host dbma.computerking.ca not found: 2(SERVFAIL)
>  
>
It is only a cname would that cause servfail

>--n
>
>  
>


---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by Noah <si...@onastick.net>.
On Sun, Apr 03, 2005 at 05:05:27PM -0600, RYAN vAN GINNEKEN wrote:
 
> >On Sun, Apr 03, 2005 at 04:18:30PM -0600, RYAN vAN GINNEKEN wrote:
> >
> >>>> I can see this host fine from inside my network but it does not work
> >>>> from  the outside world.
> 
> >Linux:
> ># netstat -ant | grep LIST
> >
> 
> tcp46      0      0  *.9001                 *.*                    LISTEN
> tcp46      0      0  *.9000                 *.*                    LISTEN

OK, so *something* is listening on port 9000; for now, we'll assume it's
Apache. Do you have a NameVirtualHost directive set up? What's the IP
address of your server? When you try and hit the website from a browser,
are you specifying port 9000? Are there any firewalls blocking access to
port 9000 from the outside? Additionally, I note that 'dbma.computerking.ca' 
is not in DNS:

$ host dbma.computerking.ca     
Host dbma.computerking.ca not found: 2(SERVFAIL)

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by RYAN vAN GINNEKEN <lu...@computerking.ca>.

--On Sunday, April 03, 2005 6:54 PM -0400 Noah <si...@onastick.net> wrote:

> On Sun, Apr 03, 2005 at 04:18:30PM -0600, RYAN vAN GINNEKEN wrote:
>
>> >> I can see this host fine from inside my network but it does not work
>> >> from  the outside world.
>
> [snip]
>
>> "The page cannot be displayed" down at the bottom of the page ie states
>> this
>>
>> Cannot find server or DNS Error
>> Internet Explorer
>>
>> As i said before i can ping this host name so do not think it is a DNS
>> problem. Hope this is helpful as the remote machine i have to use does
>> not  have Mozilla installed.
>
> So, my first thought is that you don't have a Listen directive for the
> port you're using in your VirtualHost block (9000). You can verify which
> ports your host is listening on by running something like:
>
I have these in my ssl.conf

Listen 443
Listen 9000
Listen 9001

> Linux:
># netstat -ant | grep LIST
>

tcp46      0      0  *.9001                 *.*                    LISTEN
tcp46      0      0  *.9000                 *.*                    LISTEN


> Solaris:
># netstat -anf inet | grep LIST
>
> If you don't need a '9000' in that list, you'll need to add the proper
> Listen directive.

What ?

>
> --n
>
> --
> <huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
> <huey> ^^^ Making Flippy Floppy
>
>
> ---------------------------------------------------------------------
> 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
>





---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by Noah <si...@onastick.net>.
On Sun, Apr 03, 2005 at 04:18:30PM -0600, RYAN vAN GINNEKEN wrote:

> >>I can see this host fine from inside my network but it does not work
> >>from  the outside world.

[snip]

> "The page cannot be displayed" down at the bottom of the page ie states this
> 
> Cannot find server or DNS Error
> Internet Explorer
> 
> As i said before i can ping this host name so do not think it is a DNS 
> problem. Hope this is helpful as the remote machine i have to use does not 
> have Mozilla installed.

So, my first thought is that you don't have a Listen directive for the
port you're using in your VirtualHost block (9000). You can verify which
ports your host is listening on by running something like:

Linux:
# netstat -ant | grep LIST

Solaris:
# netstat -anf inet | grep LIST

If you don't need a '9000' in that list, you'll need to add the proper
Listen directive.

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by RYAN vAN GINNEKEN <lu...@computerking.ca>.

--On Sunday, April 03, 2005 5:55 PM -0400 Noah <si...@onastick.net> wrote:

> On Sun, Apr 03, 2005 at 03:15:37PM -0600, RYAN vAN GINNEKEN wrote:
>> I have set up several virtual host containers in ssl.conf one of which
>> looks like this.
>>
>> </Virtual>
>>
>> <Virtual *:9000>
>> ##
>> ## Computerking.ca DBMA interface
>> ##
>> DocumentRoot "/usr/local/www/DBMA/dbmailadministrator"
>
> [snip]
>
> Well, for starters, <Virtual> isn't a valid directive; <VirtualHost> is.
>
Opps my conf file is correct my spell checker changed VirtualHost to 
Virtual for me when i sent you the last email hahaha.
>
>> I can see this host fine from inside my network but it does not work
>> from  the outside world.
>
> Define 'does not work'. You do get connection refused? an HTTP error?
> Does your browser disappear in a puff of plaid smoke? =)

Plaid smoke that very funny sometimes ie does that heeheehe.  Here is the 
error i get using ie

"The page cannot be displayed" down at the bottom of the page ie states this

Cannot find server or DNS Error
Internet Explorer

As i said before i can ping this host name so do not think it is a DNS 
problem. Hope this is helpful as the remote machine i have to use does not 
have Mozilla installed.

>
> --n
>
> --
> <huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
> <huey> ^^^ Making Flippy Floppy
>
>
> ---------------------------------------------------------------------
> 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
>





---------------------------------------------------------------------
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] virtual server not seen exterally

Posted by Noah <si...@onastick.net>.
On Sun, Apr 03, 2005 at 03:15:37PM -0600, RYAN vAN GINNEKEN wrote:
> I have set up several virtual host containers in ssl.conf one of which 
> looks like this.
> 
> </Virtual>
> 
> <Virtual *:9000>
> ##
> ##Computerking.ca DBMA interface
> ##
> DocumentRoot "/usr/local/www/DBMA/dbmailadministrator"

[snip]

Well, for starters, <Virtual> isn't a valid directive; <VirtualHost> is.


> I can see this host fine from inside my network but it does not work from 
> the outside world.  

Define 'does not work'. You do get connection refused? an HTTP error?
Does your browser disappear in a puff of plaid smoke? =)

--n

-- 
<huey> dd of=/dev/fd0 if=/dev/flippy bs=1024
<huey> ^^^ Making Flippy Floppy


---------------------------------------------------------------------
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