View the Most Wanted LQ Wiki articles.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


Search this Thread
Old 01-14-2005, 08:45 PM   #1
(TPM) Croaker
LQ Newbie
Registered: Jan 2005
Posts: 7

Rep: Reputation: 0
Web Server not accessible

I have been trying to make a web server accessible from the internet for a while now and it just isn't working. I have read everything I can find and everything appears to be correct, but no joy. Here's what I got:

OS: Xandros Desktop Version 2 (Open Circulation)

Webserver: Apache 1.3 (This line shows in the log - Apache/1.3.27 (Unix) Debian GNU/Linux configured)

Router: Netgear FVS318

DNS: (

Below is a copy of my Apache configuration file. As you can see it is almost a default configuration. One of the things added was a LISTEN directive so that the server listens on both Port 80 and Port 8080. The router is setup to forward both ports to the machine running the server (using a static IP address). If someone outside of my LAN attempts to connect without specifying a Port number (which I believe defaults to Port 80) or by adding the :80 to the end of the address they get a message saying that the server can not be found. If they try to connect using the same address but adding
:8080 so they go through the alternate port everything works fine.

I have spoken to my ISP (Earthlink) and they assure me that they are not blocking unsolicited requests on Port 80. I spoke with Netgear support and they say that the router is setup fine. Since the web server responds on port 8080 I have to believe that the configuration is, at lease, acceptable. The last thing that I found was that if the server was running on a port less than 1024 than the server had to be started by "root". I had the server set to activate during startup which I believed meant that it would be started by "root", but to make sure I started a console, su'd to "root" and then issued the commands 'apachectl stop' and 'apachectl start'. I again tried connecting without the port specified from the address line and failed.

Has anyone else seen this problem or have any idea how I can correct it? I would really like my group to be able to connect to the server without adding the port number.


## httpd.conf -- Apache HTTP server configuration file

### Section 1: Global Environment
ServerType standalone
ServerRoot /etc/apache
LockFile /var/lock/apache.lock
PidFile /var/run/
ScoreBoardFile /var/run/apache.scoreboard
Timeout 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15
MinSpareServers 5
MaxSpareServers 10
StartServers 5
MaxClients 150
MaxRequestsPerChild 100
Listen 80
Listen 8080
# Please keep this LoadModule: line here, it is needed for installation.
# LoadModule vhost_alias_module /usr/lib/apache/1.3/
# LoadModule env_module /usr/lib/apache/1.3/
LoadModule config_log_module /usr/lib/apache/1.3/
LoadModule mime_magic_module /usr/lib/apache/1.3/
LoadModule mime_module /usr/lib/apache/1.3/
LoadModule negotiation_module /usr/lib/apache/1.3/
LoadModule status_module /usr/lib/apache/1.3/
# LoadModule info_module /usr/lib/apache/1.3/
# LoadModule includes_module /usr/lib/apache/1.3/
LoadModule autoindex_module /usr/lib/apache/1.3/
LoadModule dir_module /usr/lib/apache/1.3/
LoadModule cgi_module /usr/lib/apache/1.3/
# LoadModule asis_module /usr/lib/apache/1.3/
# LoadModule imap_module /usr/lib/apache/1.3/
# LoadModule action_module /usr/lib/apache/1.3/
# LoadModule speling_module /usr/lib/apache/1.3/
LoadModule userdir_module /usr/lib/apache/1.3/
LoadModule alias_module /usr/lib/apache/1.3/
LoadModule rewrite_module /usr/lib/apache/1.3/
LoadModule access_module /usr/lib/apache/1.3/
LoadModule auth_module /usr/lib/apache/1.3/
# LoadModule anon_auth_module /usr/lib/apache/1.3/
# LoadModule dbm_auth_module /usr/lib/apache/1.3/
# LoadModule db_auth_module /usr/lib/apache/1.3/
# LoadModule proxy_module /usr/lib/apache/1.3/
# LoadModule digest_module /usr/lib/apache/1.3/
# LoadModule cern_meta_module /usr/lib/apache/1.3/
LoadModule expires_module /usr/lib/apache/1.3/
# LoadModule headers_module /usr/lib/apache/1.3/
# LoadModule usertrack_module /usr/lib/apache/1.3/
LoadModule unique_id_module /usr/lib/apache/1.3/
LoadModule setenvif_module /usr/lib/apache/1.3/
# LoadModule sys_auth_module /usr/lib/apache/1.3/
# LoadModule put_module /usr/lib/apache/1.3/
# LoadModule allowdev_module /usr/lib/apache/1.3/
# LoadModule eaccess_module /usr/lib/apache/1.3/
# LoadModule roaming_module /usr/lib/apache/1.3/

# ExtendedStatus: controls whether Apache will generate "full" status
# information (ExtendedStatus On) or just basic information (ExtendedStatus
# Off) when the "server-status" handler is called. The default is Off.
<IfModule mod_status.c>
ExtendedStatus On

### Section 2: 'Main' server configuration
# Port: The port to which the standalone server listens. For
# ports < 1023, you will need apache to be run as root initially.
Port 80

User www-data
Group www-data
DocumentRoot /var/www
<Directory />
Options SymLinksIfOwnerMatch
AllowOverride None
<Directory /var/www/>
AllowOverride None
Order allow,deny
Allow from all
<IfModule mod_userdir.c>
UserDir public_html
<Directory /home/*/public_html>
AllowOverride FileInfo AuthConfig Limit
Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
Order allow,deny
Allow from all
Order deny,allow
Deny from all
<IfModule mod_dir.c>
DirectoryIndex index.html index.htm index.shtml index.cgi
AccessFileName .htaccess
<Files ~ "^\.ht">
Order allow,deny
Deny from all
UseCanonicalName On
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile /usr/share/misc/file/magic.mime
HostnameLookups Off
ErrorLog /var/log/apache/error.log
LogLevel warn
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v" full
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %P %T" debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /var/log/apache/access.log combined
ServerSignature On
Alias /icons/ /usr/share/apache/icons/
<Directory /usr/share/apache/icons>
Options Indexes MultiViews
AllowOverride None
Order allow,deny
Allow from all
Alias /images/ /usr/share/images/
<Directory /usr/share/images>
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory /usr/lib/cgi-bin/>
AllowOverride None
Options ExecCGI -MultiViews
Order allow,deny
Allow from all
<IfModule mod_autoindex.c>
IndexOptions FancyIndexing NameWidth=*
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/deb.gif .deb
AddIcon /icons/back.gif ..
AddIcon /icons/hand.right.gif README
AddIcon /icons/folder.gif ^^DIRECTORY^^
AddIcon /icons/blank.gif ^^BLANKICON^^
DefaultIcon /icons/unknown.gif
ReadmeName README
HeaderName HEADER
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
<IfModule mod_mime.c>
AddEncoding x-compress Z
AddEncoding x-gzip gz tgz
AddLanguage da .dk
AddLanguage nl .nl
AddLanguage en .en
AddLanguage et .ee
AddLanguage fr .fr
AddLanguage de .de
AddLanguage el .el
AddLanguage it .it
AddLanguage ja .ja
AddCharset ISO-2022-JP .jis
AddLanguage pl .po
AddCharset ISO-8859-2 .iso-pl
AddLanguage pt .pt
AddLanguage pt-br .pt-br
AddLanguage lb .lu
AddLanguage ca .ca
AddLanguage es .es
AddLanguage sv .se
AddLanguage cs .cz
<IfModule mod_negotiation.c>
LanguagePriority en da nl et fr de el it ja pl pt pt-br lb ca es sv
AddType application/x-tar .tgz
AddType image/bmp .bmp
AddType text/x-hdml .hdml
AddDefaultCharset on
<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
<IfModule mod_perl.c>
Alias /perl/ /var/www/perl/
<Location /perl>
SetHandler perl-script
PerlHandler Apache::Registry
Options +ExecCGI
Alias /doc/ /usr/share/doc/
<Location /doc>
order deny,allow
deny from all
allow from
Options Indexes FollowSymLinks MultiViews
<IfModule mod_proxy.c>
Old 01-14-2005, 10:06 PM   #2
Registered: Nov 2004
Location: ON, CANADA
Distribution: ubuntu, RHAS, and other unmentionables
Posts: 372

Rep: Reputation: 31
Lightbulb ? alternative

Hi. I do not have much experience with Apache... I have however found that although feature rich, it is often overkill.
If possible I would point you to the abyss webserver It'll do everything you need and is so much easier to configure vs. apache. It requires almost no preparation to get it up and running (on 80 or whatever other ports you wish


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
SAMBA Server not accessible compassmanwi Linux - Networking 3 08-26-2004 08:50 PM
Server not accessible from internet checta Linux - Networking 5 05-11-2004 06:30 AM
Web server not accessible from other PCs jenna_h Linux - Networking 10 12-18-2003 02:15 PM
samba server is not accessible mla Linux - Software 5 09-30-2003 05:55 PM
ssh and ftp server not accessible bbenz3 Linux - Networking 1 03-04-2002 07:53 PM

All times are GMT -5. The time now is 12:45 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration