LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   setting up intranet fedora 5/apache/winxp (https://www.linuxquestions.org/questions/linux-networking-3/setting-up-intranet-fedora-5-apache-winxp-539343/)

jason2713 03-21-2007 09:55 AM

setting up intranet fedora 5/apache/winxp
 
Hi All -

My first post here, and I'm sure it wont be my last :)

I am trying to set up an intranet site, I've searched far and wide, yet nothing seems to help.

The scenario is:

1) all client machines have win xp pro OS
2) the server is set up with apache and I've followed all the steps for enabling http through the firewall and such (add/remove software)

3) I have my intranet page done, tested, its ready to be implemented on the fedora 5 machine with apache


It is my understanding i need to edit the host file on each client machine to point to my intranet page so they do not have to input the IP addy of my web sever, correct?

so my host file will have an entry like:

192.168.1.1 joeblow.com

Secondly, on the apache server, i must go to the etc folder and edit hosts file, however, ive only found documentation on an internet page, not an intranet page...not sure how this will differ..all my attempts have been unsuccessful

after editing both host files, errr, then what? im a noob, forgive me :)

mether 03-21-2007 11:47 AM

From what I understand you wanna show up a page on all the clients from a local web server. You are correct on the part of setting up the clients. The host file is first read when ever a name to IP resolution is made ( although you can change this ).

However for the webserver itself you have make a simialr entry in /etc/hosts file but it must correspong to the entry in the httpd.conf file. The listen entry and the wen site name used in httpd.conf must be resolved by the system itself.

If you can look at the httpd access.log file you can get the exact error messages.

jason2713 03-21-2007 12:08 PM

Quote:

Originally Posted by mether
From what I understand you wanna show up a page on all the clients from a local web server. You are correct on the part of setting up the clients. The host file is first read when ever a name to IP resolution is made ( although you can change this ).

great so the clients are good to go! woo hooo!


Quote:

Originally Posted by mether
However for the webserver itself you have make a simialr entry in /etc/hosts file but it must correspong to the entry in the httpd.conf file. The listen entry and the wen site name used in httpd.conf must be resolved by the system itself.

If you can look at the httpd access.log file you can get the exact error messages.

Yea I read I had to edit the httpd.conf file as well, however, the literature I was reading was setting up an internet site, not internal. The steps it lists are as follows:
1) edit /etc/hosts file to include a line containing your servers IP, your domain name, and your short domain name

2) edit /etc/sysconfig/network and make sure the NETWORKING=yes and HOSTNAME=joeblow.com

3) edit /etc/httpd/conf/httpd.conf scroll to #ServerName and enter joeblow.com (registered DNS name) or server's IP addy (if config to get that)

4) Scroll down to UseCanonicalName Off and change off to ON.

5) scroll down to Options and change Options Indexes FollowSymLinks to SymLinksifOwnerMatch ExecCGI MultiViews

6) Change DirectoryIndex index.html index.html.var to DirectoryIndex index.html index.html.var index.shtml index.cgi index.php index.phtml index.php3 index.htm home.html welcome.html

7) Under AddType application/x-compress .z and AddType aplication/x-gzip .gz.tgz lines add AddType application/x-httpd-php .php .phps .php3 .phtml .html .htm .shtml .fds

8) click save

im convinced most of that is for the internet and i have a real basic html intranet, so i doubt half that crap ive gotta do. I just want my end user to open a browser, type http://joeblow.com
and the intranet page comes up. Simple as that haha yea right

jason2713 03-22-2007 12:51 PM

still having problems getting this intranet working...linux really is not my bag, so im sure its something stupid im doing.


all the host files have been edited on the XP pro machines to point to my web server.

apache is enabled.

i edited the host.conf file in /etc/ folder however not sure what exactly to put in there. I tried a number of things, none of which worked.

i looked at the httpd.conf file as well, can we say overwhelming amount of crap to look at?

my goal is to basically put in http://joeblow.com and have my intranet page come up.

no article on google even comes close to what im trying to do...and its so simple...i could do it on a windows based machine, but linux is just throwing me for a loop.

any help is appreciated.
:newbie:


All times are GMT -5. The time now is 08:03 PM.