Solved

httpd.conf does not allow remote connections

Posted on 2006-11-06
8
7,030 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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

773 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