Wrox Programmer Forums
|
Linux General discussion of programming the various flavors of Linux operating systems.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Linux section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old February 20th, 2007, 11:31 AM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default RH Lnx9

Greetings,

       Hello everyone, I have just installed the RH Lnx 9. Could anyone please give me a hand and tell me the follows:

1. Where to set up default web page for the apache and where the page lies. I have searched through /var/www/html but found nothing for the default page but it shows when I start the apache for localhost.

2. How can I enable port 80 for http transactions (besides local host request)

3. Why web browsing is enabled even though I did not enable port 80 for localhost



Best regards


Newbie
 
Old February 21st, 2007, 09:57 AM
Friend of Wrox
 
Join Date: Jan 2005
Posts: 1,525
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to crmpicco Send a message via AIM to crmpicco Send a message via MSN to crmpicco Send a message via Yahoo to crmpicco
Default

/etc/httpd/

www.crmpicco.co.uk
www.ie7.com
 
Old February 21st, 2007, 01:00 PM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks !


Best regards

Newbie
 
Old February 21st, 2007, 01:03 PM
Friend of Wrox
 
Join Date: Dec 2003
Posts: 488
Thanks: 0
Thanked 3 Times in 3 Posts
Default

If you have apache 2 installed this advice won't help much (sorry)

1. you need to find your apache config file. I'm a debain user so mine lives at /etc/apache/httpd.conf open that file with your text editor and search for a line called DocumentRoot - that'll be your default directory. In there, change the index.html file to what you want as your default (home) page.

2. Look through the config for the BindAddress. Change 127.0.0.1 (or localhost) to *

3. Browsing? Or Serving? I'm assuming the latter. It will be because apache is set to start when your machine boots. To change this from the commandline (I'm sure redhat has a nice GUI for this, google may help on this):

- become root by typing 'su' and giving your root password
- Find your runlevel (by typing runlevel at the shell prompt). It's most likely to be 5, from what I remember of redhat.
- There should be a directory called /etc/rc5.d (where your runlevel is 5, subsititute it for 4 if that's your runlevel).
- cd into that directory (cd /etc/rc5.d ) and find the symlink that starts apache (apache may be called apache or httpd, you can find them by using 'ls -l | grep httpd' or 'ls -l | grep apache').
- Stop apache by typing '/etc/rc5.d/Sxxhttpd stop' (where xx is one or two digits).
- Move the symlink to your home directory by typing 'mv Sxxhttpd ~' (where xx is one or two digits).

This will disable apache you can re-enable it by moving that file back into the /etc/rc5.d directory and typing /etc/rc5.d/Sxxhttpd

HTH
Charlie



--
Charlie Harvey's website - linux, perl, java, anarchism and punk rock: http://charlieharvey.org.uk
 
Old February 22nd, 2007, 10:57 AM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Many thanks Charlie! I will try it on my machine. Thanks very much for all.



Best regards

Newbie

 
Old March 27th, 2007, 09:50 AM
Authorized User
 
Join Date: Feb 2007
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Greetings,

    Hi all! I have checked with my httpd config file and found the currently enabled port is 80 only but found no preceding binding address like localhost or others.

    If I want to enable internet browsing but keeping the risk of being attacked to the lowerst, how should I make changes to the file? Could somebody throw me some lights ?


Best regards

Newbie





Similar Threads
Thread Thread Starter Forum Replies Last Post
RH Linux 9 Install Problems jwholahan Linux 0 June 1st, 2008 03:11 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.