LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   apache server (https://www.linuxquestions.org/questions/linux-networking-3/apache-server-4781/)

jims 07-27-2001 09:48 AM

apache server
 
i am trying to set up a intranet. apache is locaded on the server
192.168.1.1 and i am trying to reach it from the client 192.168.1.2.

i can ping from client to server and server to client using ip numbers. i can also call up the default apache page from the server.

the only changes i have made to httpd.conf are:

1. ServerName 192.168.1.1
2. i added this code

<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

3. Port *:80

i am only using ip addresses as i want to get this thing up in increments.

any help would be appreciated.


thanks

jim s.

jharris 07-27-2001 10:19 AM

Have you set your documentroot? Also does does your port line read
Code:

port *:80
if so then it should be changed to just
Code:

port 80
also I'm not sure if you can have your servername as an IP address - I'd try putting a proper name in there - you'll still be able to access it via its IP address.

Test your config with
Code:

apachectl configtest
before starting httpd (apachectl start). Onces its started have a check of your server logs, have a look at httpd.conf to check exactly where they are for your Apache build - in my case they're at /var/log/access and /var/log/error but this might not be the case for you.

If you document root is set and its set to /var/www/html then there's not need for the explicit
Code:

<Directory "/var/www/html">
Options Indexes Includes FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>

section - this will be set by the entries in the <Directory /> section.

HTH

Jamie...

jims 07-28-2001 01:14 PM

apache server (the sequel)
 
jamie;

thanks for the response. unfortunately....

1. i changed the ServerName back to retro.duke.org
2. i changed the port to port 80
3. i tried to use apachectl configtest but the system couldn't find
apachectl. am working on that.
4. i commented out the <Directory "/var/www/html" code

when i try to access the server from the client using
http://192.168.1.1 or retro.duke.org i get this from netscape

'netscape network connection was refused by the server 192.168.1.1 or retro.duke.org. the server may not be accepting
connections or may be busy.'

because this is my first shot at setting up a server, maybe i should tell you what i am doing (broadly)

1. /etc/rc.d/init.d/httpd start
2. /etc/rc.d/init.d/xinetd start

both start [ok]

i then bring up netscape on the client and try to access the server.

can you see anything wrong or not done in the above?


thanks

jim s.

jharris 07-28-2001 05:49 PM

You running httpd from xinet eh? Never seen someone do this before, most people just leave it running all the time, if you are trying to do this then you don't need to manually start httpd, as xinet will do it for you.

The best thing you can do is post your entire httpd.conf so that we can tell you where you're going astray.

cheers

Jamie...


All times are GMT -5. The time now is 11:40 PM.