Re: virtualhost not picking up for non port 80

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



i added log in virtual host
   ErrorLog "logs/asdf-error.log"
   CustomLog "logs/asdf-access.log" common

when i tried again, nothing shows up on both

i also did a httpd -S and got the following

C:\Program Files\Apache Software Foundation\Apache2.2\bin>httpd -S
VirtualHost configuration:
192.168.0.10:8886      is a NameVirtualHost
         default server www.foobar.com (C:/Program Files/Apache Software Foundat
ion/Apache2.2/conf/extra/httpd-vhosts.conf:52)
         port 8886 namevhost www.foobar.com (C:/Program Files/Apache Software Fo
undation/Apache2.2/conf/extra/httpd-vhosts.conf:52)
Syntax OK

but it just won't pick up for some reason


On Mon, Apr 12, 2010 at 7:12 AM, [triplepack] info (info@xxxxxxxx) <info@xxxxxxxx> wrote:
Am 12.04.2010 16:00, schrieb Michael Ni:
I'm having difficulty on windows XP getting a virtualhost to work with non port 80.
it works when i use port 80 in the virtualhost but doesn't work with other ports. 
i have turned off my firewall, although this is private ip, shouldn't matter
i have tried ports 8080, 8888, 8000, and now with 8886.
when it doesn't match my virtualhost, it will redirect to the main configuration servername automatically
if i turn off the all other "listen" and only keep "listen 8886", i will just be unable to connect
i have searched all over the internet but i can't find the solution.

hope someone can help.

the following is my config

WINDOWS HOSTS FILE
------------------------------------
192.168.0.10    www.foobar.com

HTTPD.CONF
---------------------------------------
Listen 8886

HTTPD-VHOSTS.CONF

NameVirtualHost 192.168.0.10:8886

<VirtualHost 192.168.0.10:8886>

<Directory "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride none
    Order allow,deny
    Allow from all
</Directory>

   ServerName www.foobar.com
   DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"

</VirtualHost>


Hi Michael,

1) it would be interesting what you see in the log file

2) as soon apache is started it would be interesting if its really listening or actually something else is listening on that port

you can check this with a simple telnet connect to your ip and port and see if you get a connection working - where ever it would go

greetings

aaron


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux