Miscellaneous > Programming & Networking
Eeek. Refusal to access my web site under Apache.
voidmain:
[edit]ITFM[/edit]
[ November 25, 2002: Message edited by: void main ]
voidmain:
quote:Originally posted by bazoukas [The F*en Linux Militant]:
Nothing. Still same crap.
VoidMan you didnt even put your Ip address in the configuration dialogue?
--- End quote ---
I take it back, I must have edited the httpd.conf file. I do it out of habit after a fresh install. The first thing I do is make httpd work. But I definitely did not use the graphical configuration tool. From what I can tell the only thing I changed in the httpd.conf file from default is the "ServerName" tag. Mine looks like this:
ServerName voidsmachine.voidsdomain.home:80
You have to be able to resolve the server from the client using the hostname you define here and if you use a name the server itself must know that the name is associated with it's ethernet interface (I have a DNS server with an entry for my RedHat 8.0 machine which resolves voidsmachine.voidsdomain.home to the eth0 IP address on that box).
Also make sure the server is up and running:
$ su -
# service httpd status
Make sure http sockets are in listen state:
# netstat -a | grep http
The above command on my machine returns:
--- Code: ---
--- End code ---
Can the RedHat server ping outside of its local subnet?
Can you telnet to port 80?
# telnet xxx.xxx.xxx.xxx 80
type a few chars and press enter.
Also before doing *anything* check the /etc/httpd/logs/error_log file.
Bazoukas:
Believe it or not now that you talked about manual config,I find it more easy to use the actual files to config it. Thing is I just need to learn were such files are stored. GUI kinda sucks dick. Now I begin to understand the handicaps of GUI. Anyway I got some questions. I went on my laptop which i havent tweaked at all, so everything is set to default.
In the httpd.conf file
On Listen it has only one ip adress. If i put 0.0.0.0 port 80 will be listening to all ips right?
On the server name It has "ServerName new.host.name:80 Since i dont have a D-name I should put my IP addy right? This is like "branding" apache, like giving it a SS# (the ip).
In the document root, var/www/html is where apache will look for the index.html file right? So in other words I should put my index.html in there. Am asking because I dont see the test page of apache in there, like in RedHat7.3.
For a simple web site like mine, i dont need to play around with virtual host right?
Thanks for just even reading this :D
[ November 25, 2002: Message edited by: bazoukas [The F*en Linux Militant] ]
Master of Reality:
there should be a line somewhere that says "Port 80" and then you set it to listen on 0.0.0.0
i dunno about the servername because i got my own domain name for it.
you shouldnt need to play around with virtual hosts unless you plan to have more than one site.
you should have the Document Root set as "/var/www/html/" which is default. Apache will look for any index.html under any directory. THe index pages are defined in the httpd.conf: for example it will usually be set by default to first look for index.html then index.htm then index.php, index.cgi, index.pl, index.shtml, etc. and apache will look in that order for index files.
If there is no index file in the directory then by default apache will show a listing of everything within the directory, i turned off directory listing in my httpd.conf so that wouldnt happen.
[ November 25, 2002: Message edited by: The Master of Reality / B0B ]
Bazoukas:
Never mind the html folder thing (last part of my question. It was s tupid question)
For some reason with RedHat8 i decided to go all pro and shit, and I did configurations that are off the wall.
I Just saw what I meesed up. Will fix it tomorow and post details for anybody who might find it helpfull.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version