chief Posted November 19, 2003 Share Posted November 19, 2003 first post; howdy; i have redhat 9 and decided to setup a webserver. i used redhat-config-packages to install the webserver package, which includes apache, mysql, and others. then i tried http://localhost and the apache test page and works; i thought great, that was easy, until i tried to access the webserver from a networked computer. i get nothing in ie, just \"THE PAGE CANNOT BE DISPLAYED\". i can ping the server and recieve confirm from a network machine but no webpage. i have turned on the httpd service and restarted it. i do not have a firewall in between computers and i believe i have configured the httpd.conf correctly i don\'t know what to try next; can someone please help? Quote Link to comment Share on other sites More sharing options...
Arenium Posted November 20, 2003 Share Posted November 20, 2003 http://the.lan.ip.of.the.server.goes.here probably something like http://192.168.1.105 localhost is exactly how it sounds, LOCAL to THAT machine only. if the machine you\'re trying to view the page from doesnt have httpd running, then theres nothing to show. http://localhost = http://[lan.ip.address] = http://[hostname] (my linux box is named martinman, so http://martinman works) only exception is, the ip address and hostname (if configured correctly) is accessible to all computers within the network. Quote Link to comment Share on other sites More sharing options...
greenhornet Posted November 21, 2003 Share Posted November 21, 2003 Also check that port 80 (the default http port) is viewable by the other machines on your network. Even if you dont have a firewall in between the machines either computer might have a software firewall on it. Use a program like nmap (is on the RH9 install disc) to do a port scan on the server from one of your other computers, if port 80 is open and you don\'t have your httpd.conf file setup to allow access to anyone (it is setup like this by default in RH9) then you should be able to see the pages as Arenium said above. If nmap says port 80 isn\'t open then on the server machine as root type; \"service iptables stop\" and try portscanning the server again. This command will turn your firewall off. It will startup again when you reboot the server however. Quote Link to comment Share on other sites More sharing options...
sjennings Posted November 22, 2003 Share Posted November 22, 2003 If you have windows client PC\'s or even if you don\'t, find the \"hosts\" file. You can create your own virtual DNS testing environment using host files as it was done in the eraly days. Look in the etc/ folder this is where it should be. Example Host File; ------------------------------------------------------------------------------------- # Copyright © 1993-1999 Microsoft Corp. # # This is a sample HOSTS file used by Microsoft TCP/IP for Windows. # # This file contains the mappings of IP addresses to host names. Each # entry should be kept on an individual line. The IP address should # be placed in the first column followed by the corresponding host name. # The IP address and the host name should be separated by at least one # space. # # Additionally, comments (such as these) may be inserted on individual # lines or following the machine name denoted by a \'#\' symbol. # # For example: # # 102.54.94.97 rhino.acme.com # source server # 38.25.63.10 x.acme.com # x client host 127.0.0.1 localhost 192.168.0.1 datanet ------------------------------------------------------------------------------------- Create a line under the examples that says something like this. 192.168.0.10 MyServerName The first line being the IP of your box that Apache is installed on and MyServerName being the actual name of the server that Apache is running on. copy that or re-create that file to each client PC or on the server. change your primary DNS server info that is bound to your NIC to either point to the Apache server if you created the new host file there or the client PC its self with the host file. This will allow the PC to look a local address, find the hosts file, and resolve the name to IP just like any DNS server out there. You will now be able to type in \"MyServerName\", meaning, the actual name of the server that apache is running on and get full DNS resolution. You can extend this concept to create your own internal www.xxx.com test environment as long as you are not hitting any live DNS servers on the net. Hopes this helps, typing ip\'s to test your site gets old. Shane J Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.