Solved

httpd.conf does not allow remote connections

Posted on 2006-11-06
8
7,130 Views
Last Modified: 2012-06-21
Hello experts,

I have my custom Apache configuration file httpd.conf as following:

-------------------------------------------------------------------------------
Include conf/ica_dir.conf
Port 6450

ErrorDocument 404 http://localhost:6450/html/apache_notfound.html
ErrorDocument 401 http://localhost:6450/html/apache_notfound.html
ErrorDocument 403 http://localhost:6450/html/apache_notfound.html

Timeout 300
BindAddress *

LoadModule vhost_alias_module modules/mod_vhost_alias.so
LoadModule expires_module modules/mod_expires.so
LoadModule php4_module modules/php4apache.dll

ServerName localhost
<Directory />
    Options FollowSymLinks
    AllowOverride All
</Directory>
AccessFileName .htaccess
<Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</Files>
UseCanonicalName Off

ThreadsPerChild 50

LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog ../logs/access.log common
PidFile ../logs/httpd.pid
ErrorLog ../logs/error.log
AddType application/x-httpd-php .php
DirectoryIndex index.php index.html index.phtml

Include conf/ica_dir1.conf
-------------------------------------------------------------------------------

The problem is that I can open the address http://localhost:6450 at my computer but other computers that use my computer IP (like http://192.168.1.10:6450) cannot open this website.

Pls help me how to fix this httpd.conf, thanks very much.
0
Comment
Question by:excelxp
  • 4
  • 3
8 Comments
 
LVL 9

Expert Comment

by:shinobun
ID: 17886683
What does your Listen directive look like?  If you specify the IP address, Apache will only listen on that IP address.

http://httpd.apache.org/docs/2.2/mod/mpm_common.html#listen
0
 
LVL 57

Expert Comment

by:giltjr
ID: 17886691
Where are these other computers in relationship to your computer? Are they on the same IP subnet as yours?

Do you have a personal firewall that could be blocking inbound access to port 6450?

What OS are you running?
0
 

Author Comment

by:excelxp
ID: 17887667
Thanks,

These other computers are on the same IP subnet as mine, and on the same domain. There is also no block access to port 6450. The OS is Windows XP.
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 57

Expert Comment

by:giltjr
ID: 17889370
When you try and access the site what exact error do you get?

From one of the other computer (this will be the "client") try to get to the one running the Websever (this will be the "sever").  As you are doing that issue the following command on BOTH computer:

     netstat -n

Look for all lines that have the IP address of the Web Server and see what the status of the connection is.  If you see SYNSENT on the "client" then something on the Server is blocking inbound access to port 6450.  

Are you running any firewalls on the "sever"?
0
 

Author Comment

by:excelxp
ID: 17895643
Thanks, I try something like this:

"netstat -n" on the server (Windows Server 2003):
-------------------------------------------------------------------------------
Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    127.0.0.1:2389         127.0.0.1:32007        TIME_WAIT
  TCP    127.0.0.1:2392         127.0.0.1:32007        TIME_WAIT
  TCP    127.0.0.1:2394         127.0.0.1:32007        TIME_WAIT
  TCP    127.0.0.1:2400         127.0.0.1:32007        TIME_WAIT
  TCP    127.0.0.1:6450         127.0.0.1:2334         TIME_WAIT
  TCP    172.16.12.10:1053      172.16.1.2:1025        ESTABLISHED
  TCP    172.16.12.10:1054      172.16.1.2:1025        ESTABLISHED
  TCP    172.16.12.10:2319      172.16.1.2:389         ESTABLISHED
  TCP    172.16.12.10:2409      72.246.44.80:80        ESTABLISHED
  TCP    172.16.12.10:3389      172.16.12.110:1210     ESTABLISHED
-------------------------------------------------------------------------------

"netstat -n" on the client (Windows XP):
-------------------------------------------------------------------------------
Active Connections

  Proto  Local Address          Foreign Address        State
  TCP    172.16.12.110:1190     172.16.1.2:445         ESTABLISHED
  TCP    172.16.12.110:1210     172.16.12.10:3389      ESTABLISHED
  TCP    172.16.12.110:1311     172.16.1.7:110         TIME_WAIT
-------------------------------------------------------------------------------

The server has its IP address 172.16.1.10, running IIS as webserver. I also run Apache with custom httpd.conf that will get port 6450.

I don't know why this Apache with this custom httpd.conf can prevent connections from other client computers. From client computer I cannot access to http://172.16.12.10:6450 (run with Apache), but other addresses like http://172.16.12.10 (run with IIS) can.

Many thanks
0
 

Author Comment

by:excelxp
ID: 17895651
...server IP address is 172.16.12.10 and there is no any firewall
0
 
LVL 57

Accepted Solution

by:
giltjr earned 500 total points
ID: 17897898
You did this while you were attempting to access the websever from 172.16.12.110?  I don't see any connection on the client that shows it even attempting to access 172.16.12.10.

Apache configured properly (or improperly depending on your point of view) can prevent connections from specific IP address or addresses.  This is done by the allow/deny statments.
0
 
LVL 57

Expert Comment

by:giltjr
ID: 17968161
Thanks for the points.  What what your problem?  It would be nice to know so that others that have a similar problem can find out how you fixed yours.
0

Featured Post

Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question