httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <>
Subject Re: [users@httpd] Apache Virtual Host Config issue
Date Thu, 10 Oct 2013 01:36:58 GMT
Hi Ammar,

If your vhost is only bound to port 8080, then going to will not load the site from the apache server.
You need to explicitly us
Since it is working from localhost, that implies that apache is only
listening on localhost and the subdomain resolves to some other IP.

When you start up apache and there is no DNS record at all, Apache will
generate a warning (this is from 2.4, but older versions should be similar):
[Wed Oct 09 21:24:53.955601 2013] [core:error] [pid 58704:tid 400] (OS
11001)No such host is known.  : AH00547: Could not resolve host name

If it does not generate an error, have a look at where
SUBDOMAIN.EXAMPLE.COMgoes: Open a command prompt and type ping
(Depending on your DNS server, you might need to include the trailing
period. You could use nslookup, but it does not show results from the hosts
If the host can be resolved, ping will give you an IP address. Make sure
that it is the IP address of your computer (or

If it is not, you need to make sure apache is listening to that
The easiest way to do that is netstat -an . In that output there should be
at least one listing for port 8080.
Make sure there is either one for every IP you use or one for

If not, you might need to add another Listen directive with each IP you
want to listen on.

Also, check the Apache error log and system log for errors in binding ports
(Apache would not start at all if there was a conflict, but a small
configuration issue could be warned about.)

- Y

On Wed, Oct 9, 2013 at 8:36 PM, Ammar Hassan <> wrote:

> I have IIS and Apache both running on my server. Apache is on 8080. I am
> having some DNS mapping issues.
> I have a virtual host entry as follows:
> <VirtualHost *:8080>
>   ServerName
>   DocumentRoot "D:/www/public_html"
>   <Directory "D:/www/public_html">
>     Options Indexes FollowSymLinks
>     AllowOverride All
>     <IfVersion < 2.3>
>       Order allow,deny
>       Allow from all
>     </IfVersion>
>    <IfVersion>= 2.3>
>      Require all granted
>     </IfVersion>
>   </Directory>
> </VirtualHost>
> Is there something wrong with this? because when I browse to
>, it gives me a 404 error. I can't even browse it as
> If I map the same domain on IIS it works
> fine and lets me browse to
> I am able to browse to my Apache site via localhost:8080 but not with
> Can anyone help me.
> My Host file has the following entry
>      TestDevServer
> Please help me map my domain (sub domain in this case) to point at the
> location of my site.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View raw message