LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-27-2001, 09:48 AM   #1
jims
LQ Newbie
 
Registered: Mar 2001
Location: Leominster, MA
Distribution: R.H. 7.1 / mandrake 7.1
Posts: 3

Rep: Reputation: 0
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.
 
Old 07-27-2001, 10:19 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
Old 07-28-2001, 01:14 PM   #3
jims
LQ Newbie
 
Registered: Mar 2001
Location: Leominster, MA
Distribution: R.H. 7.1 / mandrake 7.1
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 07-28-2001, 05:49 PM   #4
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
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...
 
  


Reply



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
setting up a slack, apache server with php and a sql server. caged Slackware 1 10-25-2004 04:45 AM
problems setting up apache and vsftp server behind a router that serves as a server xone Linux - Security 1 04-08-2004 10:46 AM
Setup linux-apache server to access documents on NT server josephswagner Linux - Software 11 04-11-2003 08:35 AM
Apache Server Config, Mail Server, & Uploading johan the olive Linux - Networking 5 03-14-2003 11:42 PM
Apache server and MySQL server won't run at startup! dday007 Linux - General 2 02-07-2003 02:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:05 PM.

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