httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ammar Hassan <>
Subject RE: [users@httpd] Apache Virtual Host Config issue
Date Thu, 10 Oct 2013 03:03:06 GMT
Hi Yehuda,
Thank you for a detailed reply. I have gone through the things you asked me to check. There
was an entry in netstat -an like this:
TCP    [::]:8080              [::]:0                 LISTENING
Which suggests that Apache is running. So now what I did was, I tried to add a Listen directive
to the IPAddress the subdomain was resolving to.
I also added a virual host entry explicitly for this IP
When I restarted Apache it failed with the following error:
"Context of the address was (OS 10049) request is invalid. : AH00072: make_sock: could not
bind to address"
My subdomain however, when pinged, points to this IP address. Can you please let me know what
I am doing wrong here. Thank you for your help.

> From: 
> Date: Wed, 9 Oct 2013 21:36:58 -0400 
> To: 
> Subject: Re: [users@httpd] Apache Virtual Host Config issue 
> 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  
> 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 file.) 
> 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 IP. 
> 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:  
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message