This is a discussion on Apache 2.0.52 Windows XP Pro SP2 - localhost only problem within the Windows Web Servers forums, part of the Web Server and Related Forums category; Problem: I can only get my apache to work from localhost:8080 and 127.0.0.1:8080 System Spec: ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Problem:
I can only get my apache to work from localhost:8080 and 127.0.0.1:8080 System Spec: Apache 2.0.52 (x386) PHP 5.???? MySQL 4.0.21 Windows XP Pro w/SP2 Windows Firewall - OFF ZoneAlarm Firewall - allow all incoming/outgoing TCP on ports 80, 1433, 8080 No Route, Hub, or switch Internet connection: ADSL, my ISP does NOT allow port 80 My IP: 66.183.xxx.xx httpd.conf ---------------------------- > I will include the whole httpd.conf file at the end of this message Listen 8080 ServerRoot "C:/WebServ/apache2" DocumentRoot "C:/WebServ/wwwroot/htdocs" ServerName 66.18.xxx.xx:8080 ServerSignature On ServerTokens Full DefaultType text/plain AddDefaultCharset ISO-8859-1 UseCanonicalName Off HostnameLookups Off httpd.conf ---------------------------- > I will include the whole httpd.conf file at the end of this message This is just my test server, but I NEED to have some people be able to view my test server from a remote location. My ISP does not allow port 80 so I have apache listening to port 8080. I have also tried port 993 just for the he!! of it. nothing works. http://localhost:8080/ProductionMonitor.htm --- Works http://127.0.0.1:8080/ProductionMonitor.htm --- Works http://66.183.xxx.xx:8080/ProductionMonitor.htm - DOES NOT WORK, the browser just sits there and times out, then I get a message - Server Can not be Found. This happens from both remote computers, and the computer where the server in running on. I can ping my IP from any computer, local or remote. What am I doing wrong? There has to be 1 setting that I have wrong SOMEWHERE?? Any help would be great. Sincerely; MJ <<----------------- httpd.conf --------- Start --------->> Listen 8080 ServerRoot "C:/WebServ/apache2" DocumentRoot "C:/WebServ/wwwroot/htdocs" ServerName 66.18.xxx.xx:8080 ServerSignature On ServerTokens Full DefaultType text/plain AddDefaultCharset ISO-8859-1 UseCanonicalName Off HostnameLookups Off ErrorLog "C:/WebServ/logs/httpd/error.log" # Possible values include: debug, info, notice, warn, error, crit, alert, emerg. LogLevel error PidFile "C:/WebServ/logs/httpd/httpd.pid" Timeout 300 KeepAlive On MaxKeepAliveRequests 100 KeepAliveTimeout 15 #EnableSendfile Off <IfModule mpm_winnt.c> ThreadsPerChild 250 MaxRequestsPerChild 0 </IfModule> LoadModule access_module modules/mod_access.so #LoadModule actions_module modules/mod_actions.so LoadModule alias_module modules/mod_alias.so #LoadModule asis_module modules/mod_asis.so LoadModule auth_module modules/mod_auth.so #LoadModule auth_anon_module modules/mod_auth_anon.so #LoadModule auth_dbm_module modules/mod_auth_dbm.so #LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule autoindex_module modules/mod_autoindex.so #LoadModule cache_module modules/mod_cache.so #LoadModule cern_meta_module modules/mod_cern_meta.so LoadModule cgi_module modules/mod_cgi.so #LoadModule dav_module modules/mod_dav.so #LoadModule dav_fs_module modules/mod_dav_fs.so LoadModule deflate_module modules/mod_deflate.so LoadModule dir_module modules/mod_dir.so #LoadModule disk_cache_module modules/mod_disk_cache.so #LoadModule env_module modules/mod_env.so #LoadModule expires_module modules/mod_expires.so #LoadModule file_cache_module modules/mod_file_cache.so LoadModule headers_module modules/mod_headers.so #LoadModule imap_module modules/mod_imap.so LoadModule include_module modules/mod_include.so LoadModule info_module modules/mod_info.so #LoadModule isapi_module modules/mod_isapi.so LoadModule log_config_module modules/mod_log_config.so #LoadModule logio_module modules/mod_logio.so LoadModule mime_module modules/mod_mime.so #LoadModule mime_magic_module modules/mod_mime_magic.so #LoadModule proxy_module modules/mod_proxy.so #LoadModule proxy_connect_module modules/mod_proxy_connect.so #LoadModule proxy_http_module modules/mod_proxy_http.so #LoadModule proxy_ftp_module modules/mod_proxy_ftp.so LoadModule negotiation_module modules/mod_negotiation.so #LoadModule rewrite_module modules/mod_rewrite.so LoadModule setenvif_module modules/mod_setenvif.so #LoadModule speling_module modules/mod_speling.so LoadModule status_module modules/mod_status.so #LoadModule unique_id_module modules/mod_unique_id.so #LoadModule userdir_module modules/mod_userdir.so #LoadModule usertrack_module modules/mod_usertrack.so #LoadModule vhost_alias_module modules/mod_vhost_alias.so #LoadModule ssl_module modules/mod_ssl.so #LoadModule php4_module "C:/WebServ/php/php4apache2.dll" LoadModule php5_module "C:/WebServ/php/php5apache2.dll" LoadFile "C:/WebServ/perl/bin/perl58.dll" LoadModule perl_module modules/mod_perl.so LoadModule security_module modules/mod_security.so <Location /> <IfModule mod_deflate.c> AddOutputFilterByType DEFLATE text/html text/plain text/css <IfModule mod_headers.c> Header append Vary User-Agent </IfModule> </IfModule> </Location> <Directory /> Options FollowSymLinks AllowOverride None order allow,deny deny from all </Directory> <Directory "C:/WebServ/wwwroot/htdocs"> #Options Indexes FollowSymLinks Includes AllowOverride None order allow,deny allow from all </Directory> <IfModule mod_cgi.c> ScriptAlias /cgi-bin/ "C:/WebServ/wwwroot/cgi-bin/" <Directory "C:/WebServ/wwwroot/cgi-bin"> Options None AllowOverride None Order allow,deny Allow from all </Directory> </IfModule> SetEnvIf Request_URI "cmd\.exe" trash SetEnvIf Request_URI "root\.exe" trash SetEnvIf Request_URI "shell\.exe" trash SetEnvIf Request_URI "default\.ida" trash SetEnvIf Request_URI "wpad\.dat" trash LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\"" combined CustomLog "C:/WebServ/logs/httpd/access.log" combined env=!trash CustomLog "C:/WebServ/logs/httpd/trash.log" combined env=trash <IfModule mod_deflate.c> DeflateFilterNote Input instream DeflateFilterNote Output outstream DeflateFilterNote Ratio ratio LogFormat '"%r" %{outstream}n/%{instream}n (%{ratio}n%%)' deflate CustomLog "C:/WebServ/logs/httpd/deflate.log" deflate env=!trash </IfModule> DirectoryIndex index.html index.htm index.php AccessFileName .htaccess <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> Alias /phpmyadmin/ "C:/WebServ/addons/phpmyadmin/" <Directory "C:/WebServ/addons/phpmyadmin"> Options None AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.1 </Directory> Alias /phpmybackuppro/ "C:/WebServ/addons/phpmybackuppro/root/" <Directory "C:/WebServ/addons/phpmybackuppro/root"> Options None AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.1 </Directory> Alias /awstats/ "C:/WebServ/addons/awstats/root/" <Directory "C:/WebServ/addons/awstats/root"> Options FollowSymLinks Includes ExecCGI AllowOverride None Order deny,allow Deny from all Allow from 127.0.0.1 </Directory> <IfModule mod_autoindex.c> IndexOptions FancyIndexing VersionSort Alias /icons/ "C:/WebServ/apache2/icons/" <Directory "C:/WebServ/apache2/icons"> Options MultiViews AllowOverride None Order allow,deny Allow from all </Directory> ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip AddIconByType (TXT,/icons/text.gif) text/* AddIconByType (IMG,/icons/image2.gif) image/* AddIconByType (SND,/icons/sound2.gif) audio/* AddIconByType (VID,/icons/movie.gif) video/* AddIcon /icons/binary.gif .bin .exe AddIcon /icons/binhex.gif .hqx AddIcon /icons/tar.gif .tar AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip AddIcon /icons/a.gif .ps .ai .eps AddIcon /icons/layout.gif .html .shtml .htm .pdf AddIcon /icons/text.gif .txt AddIcon /icons/c.gif .c AddIcon /icons/p.gif .pl .py AddIcon /icons/f.gif .for AddIcon /icons/dvi.gif .dvi AddIcon /icons/uuencoded.gif .uu AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl AddIcon /icons/tex.gif .tex AddIcon /icons/bomb.gif core AddIcon /icons/back.gif .. AddIcon /icons/hand.right.gif README AddIcon /icons/folder.gif ^^DIRECTORY^^ AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif AddDescription "GZIP compressed document" .gz AddDescription "tar archive" .tar AddDescription "GZIP compressed tar archive" .tgz AddDescription "PHP executible script" .php .php3 .phtml </IfModule> <IfModule mod_mime_magic.c> MIMEMagicFile conf/magic </IfModule> <IfModule mod_mime.c> TypesConfig conf/mime.types AddType application/x-tar .tgz AddType application/x-rar-compressed .rar AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddType image/x-icon .ico AddType application/x-httpd-php .php .php3 AddType application/x-httpd-php-source .phps <IfModule mod_cgi.c> AddType application/x-httpd-cgi .cgi AddHandler cgi-script .cgi </IfModule> <IfModule mod_perl.c> AddType application/x-httpd-perl .pl </IfModule> <IfModule mod_include.c> AddType text/html .shtml .html .htm AddOutputFilter INCLUDES .shtml .html .htm </IfModule> </IfModule> <IfModule mod_negotiation.c> <IfModule mod_include.c> Alias /error/ "C:/WebServ/apache2/error/" <Directory "C:/WebServ/apache2/error"> AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en cs de es fr it nl sv pt-br ro ForceLanguagePriority Prefer Fallback </Directory> ErrorDocument 400 /error/HTTP_BAD_REQUEST.html.var ErrorDocument 401 /error/HTTP_UNAUTHORIZED.html.var ErrorDocument 403 /error/HTTP_FORBIDDEN.html.var ErrorDocument 404 /error/HTTP_NOT_FOUND.html.var ErrorDocument 405 /error/HTTP_METHOD_NOT_ALLOWED.html.var ErrorDocument 408 /error/HTTP_REQUEST_TIME_OUT.html.var ErrorDocument 410 /error/HTTP_GONE.html.var ErrorDocument 411 /error/HTTP_LENGTH_REQUIRED.html.var ErrorDocument 412 /error/HTTP_PRECONDITION_FAILED.html.var ErrorDocument 413 /error/HTTP_REQUEST_ENTITY_TOO_LARGE.html.var ErrorDocument 414 /error/HTTP_REQUEST_URI_TOO_LARGE.html.var ErrorDocument 415 /error/HTTP_UNSUPPORTED_MEDIA_TYPE.html.var ErrorDocument 500 /error/HTTP_INTERNAL_SERVER_ERROR.html.var ErrorDocument 501 /error/HTTP_NOT_IMPLEMENTED.html.var ErrorDocument 502 /error/HTTP_BAD_GATEWAY.html.var ErrorDocument 503 /error/HTTP_SERVICE_UNAVAILABLE.html.var ErrorDocument 506 /error/HTTP_VARIANT_ALSO_VARIES.html.var </IfModule> </IfModule> <IfModule mod_setenvif.c> BrowserMatch "Mozilla/2" nokeepalive BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0 BrowserMatch "RealPlayer 4\.0" force-response-1.0 BrowserMatch "Java/1\.0" force-response-1.0 BrowserMatch "JDK/1\.0" force-response-1.0 BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully BrowserMatch "^WebDrive" redirect-carefully BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully BrowserMatch "^gnome-vfs" redirect-carefully <IfModule mod_deflate.c> BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html </IfModule> </IfModule> <IfModule mod_security.c> SecFilterEngine On SecFilterDefaultAction "deny,log,status:403" SecFilterScanPOST On SecFilterScanOutput On SecFilterCheckURLEncoding On SecFilterCheckCookieFormat On SecFilterCheckUnicodeEncoding Off SecFilterForceByteRange 1 255 #SecServerSignature "Microsoft-IIS/5.0" SecUploadDir "C:/WebServ/temp" SecUploadKeepFiles Off SecAuditEngine RelevantOnly SecAuditLog "C:/WebServ/logs/httpd/audit.log" SecFilterDebugLevel 0 SecFilterDebugLog "C:/WebServ/logs/httpd/modsec_debug.log" SecFilterSelective REQUEST_METHOD "!^GET$" chain SecFilterSelective HTTP_Content-Type "!(^$|^application/x-www-form-urlencoded$|^multipart/form-data)" SecFilterSelective REQUEST_METHOD "^POST$" chain SecFilterSelective HTTP_Content-Length "^$" SecFilterSelective HTTP_Transfer-Encoding "!^$" # Command execution attacks SecFilter /Winnt/ SecFilter /Winnt/System32/ SecFilter /Windows/ SecFilter /Windows/System32/ # Directory traversal attacks SecFilter "\.\./" # XSS attacks SecFilter "<(.|\n)+>" SecFilter "<[[:space:]]*script" # SQL injection attacks # SecFilter "delete[[:space:]]+from" ---------------------------------------REM OUT LINES # SecFilter "insert[[:space:]]+into" # SecFilter "select.+from" # Require HTTP_USER_AGENT and HTTP_HOST headers SecFilterSelective "HTTP_USER_AGENT|HTTP_HOST" "^$" # PHP fatal error SecFilterSelective OUTPUT "Fatal error:" # Detect successful intrusions. SecFilterSelective OUTPUT "Volume Serial Number" SecFilterSelective OUTPUT "Command completed" SecFilterSelective OUTPUT "Bad command or filename" SecFilterSelective OUTPUT "file(s) copied" SecFilterSelective OUTPUT "Index of /cgi-bin/" SecFilterSelective OUTPUT ".*uid\=\(" </IfModule> <IfModule mod_status.c> ExtendedStatus On <Location /server-status> SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </IfModule> <IfModule mod_info.c> <Location /server-info> SetHandler server-info Order deny,allow Deny from all Allow from 127.0.0.1 </Location> </IfModule> <IfModule mod_cache.c> <IfModule mod_disk_cache.c> <IfModule mod_proxy.c> ProxyRequests On <Proxy *> Order deny,allow Deny from all Allow from .example.com </Proxy> ProxyVia On CacheRoot "C:/Program Files/WebServ/apache2/proxy" CacheSize 5 CacheGcInterval 4 CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 </IfModule> </IfModule> </IfModule> <IfModule mod_ssl.c> Include conf/ssl.conf </IfModule> <IfModule mod_perl.c> Include conf/perl.conf </IfModule> <IfModule mod_auth_mysql.c> Include conf/mod_auth_mysql.conf </IfModule> #NameVirtualHost *:80 #<VirtualHost *:80> # ServerAdmin webmaster@localhost.comdummy-host.example.com # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost> << ---------------- httpd.conf ------------------->> |
|
|||
|
On 27 Sep 2005 12:37:51 -0700, mj@lightfootarts.com wrote:
>My IP: 66.183.xxx.xx [...] >Listen 8080 > >ServerRoot "C:/WebServ/apache2" >DocumentRoot "C:/WebServ/wwwroot/htdocs" > >ServerName 66.18.xxx.xx:8080 For what reason do you use another IP address here? [...] > This is just my test server, but I NEED to have some people be able to > view my test server from a remote location. My ISP does not allow port > 80 so I have apache listening to port 8080. > I have also tried port 993 just for the he!! of it. nothing works. > > http://localhost:8080/ProductionMonitor.htm --- Works > http://127.0.0.1:8080/ProductionMonitor.htm --- Works Good, at least your server is running. > http://66.183.xxx.xx:8080/ProductionMonitor.htm - DOES NOT WORK, the > browser just sits there and times out, then I get a message - Server > Can not be Found. This happens from both remote computers, Are you sure your ISP doesn't block 8080 as well ? > and the computer where the server in running on. The latter would only work if you have - NAT loopback on your router or - your browser set up to use a proxy server _outside_ your local network. Search this group on "loopback" and my name for a more detailed explanation. HTH -- ) Kees Nuyt ( c[_] |
|
|||
|
>My IP: 66.183.xxx.xx
[...] >Listen 8080 >ServerRoot "C:/WebServ/apache2" >DocumentRoot "C:/WebServ/wwwroot/htdocs" >ServerName 66.18.xxx.xx:8080 For what reason do you use another IP address here? [...] It was just a typo in my post, my IP is 66.183.xxx.xx ... :) |
|
|||
|
last few line from access.log
<<------------------------access.log----------------------->>> 127.0.0.1 - - [27/Sep/2005:21:02:46 -0700] "GET /Production.php HTTP/1.1" 200 8478 "http://localhost:93/ProductionMonitor.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" 127.0.0.1 - - [27/Sep/2005:21:02:46 -0700] "GET /Statistic.php HTTP/1.1" 200 824 "http://localhost:93/ProductionMonitor.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" 127.0.0.1 - - [27/Sep/2005:21:03:13 -0700] "GET /Production.php HTTP/1.1" 200 8478 "http://localhost:93/ProductionMonitor.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" 127.0.0.1 - - [27/Sep/2005:21:03:13 -0700] "GET /Statistic.php HTTP/1.1" 200 824 "http://localhost:93/ProductionMonitor.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" 127.0.0.1 - - [27/Sep/2005:21:04:13 -0700] "GET /Production.php HTTP/1.1" 200 8478 "http://localhost:93/ProductionMonitor.htm" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322)" <<------------------------------------------------------------------ access.log-------------------------------->> I tried connecting with my IP address after [27/Sep/2005:21:04:13 -0700] and there is no record at all of it in the access.log last few lines from error.log <<----------------------------------- error.log-------------------------->> [Tue Sep 27 21:00:14 2005] [notice] Child 4736: Child process is running [Tue Sep 27 21:00:14 2005] [notice] Child 4736: Acquired the start mutex. [Tue Sep 27 21:00:14 2005] [notice] Child 4736: Starting 250 worker threads. <<----------------------------------- error.log-------------------------->> I have also tried: - using port 93 - turning both my ZoneAlarm, and Norton Anti-Virus OFF All that my "c:\windows\system32\drivers\etc\host" has in it is: 127.0.0.1 localhost NOW, I have a friend running ALMOST the same setup on his home computer: win xp pro w/sp2 apache2.0.52 etc ... His server works from local and remote computers so I had him send me his httpd.conf file .I updated all the paths in his httpd.conf file and used that file to start my apache with. I was able to get the server up and running np, but once again it only worked from localhost or 127.0.0.1 This makes me believe that I must have a setting in Windows wrong, not my Apache. Any help??? please |
|
|||
|
Hi MJ,
On 27 Sep 2005 22:01:33 -0700, mj@lightfootarts.com wrote: [snipped logs] Your logs and httpd configuration look fine. > I have also tried: > - using port 93 > - turning both my ZoneAlarm, and Norton Anti-Virus OFF > > All that my "c:\windows\system32\drivers\etc\host" has in it is: > 127.0.0.1 localhost > > NOW, I have a friend running ALMOST the same setup on > his home computer: > win xp pro w/sp2 > apache2.0.52 > etc ... > > His server works from local and remote computers so I had him send me > his httpd.conf file .I updated all the paths in his httpd.conf file and > used that file to start my apache with. I was able to get the server > up and running np, but once again it only worked from localhost or > 127.0.0.1 > > This makes me believe that I must have a setting in Windows > wrong, not my Apache. > > Any help??? please Indeed it seems to be something in Windows or your network configuration. In your first posting you said: > No Route, Hub, or switch Are you sure about that? What kind of connection do you have to the internet? Some ADSL and Cable modems act like a router. If you have one of those, you have to activate NAT (Network Address Translation) to route incoming traffic for port 93 to the address of your webserver on your local network (usually 10.x.y.z or 192.168.x.y, ipconfig can tell you which address that is). Once that is set, your friend should be able to find your server on 66.183.xxx.xx:93 NAT as such will not let you address 66.183.xxx.xx from within your local network, my first follow-up tells you how to do that (NAT loopback etc.) Hope this helps, -- ) Kees Nuyt ( c[_] |