Jump to content
xisto Community
Sign in to follow this  
marcin

Need Help With Apache Configuration Problems

Recommended Posts

HelloI have some problem with my apache - I want to configure it to work, when I write in my browser 'LOCALHOST'I have LAN in my house and I set an adress 192.168.0.6, and when I want to use it, I have to write my IP, what is annoying :]Maby I have broke something in setting of my IP or something?And what I have to do, to have a local serwer on linux (I use Aurox 10.0)Maby that distribution isn't good for a local serwer? maby I should change it for something ealse?Please help

Edited by microscopic^earthling (see edit history)

Share this post


Link to post
Share on other sites

whaaaaa????????

Please phrase your questions a little better next time, anyway.

http://localhost only works for your own computer since the server is run on YOUR computer
If you want to have for instance hello.com direct to your local server you have to do this

Windows : Edit the c:\windows\system32\drivers\etc\hosts file on the all the computer in your network and add the following line

192.168.0.6 <tab, press tab> hello.com

Linux : the same but for the file /etc/hosts (not fully sure about this one)

This will make windows everytime you request hello.com send it to your local server.

About distro's, any linux distro is good enough to run a http server(apache), most distros even can install it during the installation of the system.

Share this post


Link to post
Share on other sites

Hey marcin, I would like to help you but I can't make out much from what you've said. What Operating System are we talking about? What is the IP address of the computer you're running Apache on? What is the computer's name? Are you accessing it from the computer that runs apache or from a computer on the network? As far as I can tell you want to type 'LOCALHOST/' and have it show your web server content, I will assume it is from the same computer. If this is on Linux we need to check a few things out. in your /etc/hosts file you need to check that 127.0.0.1 has the name localhost, you should also check that 'http://forums.xisto.com/no_longer_exists/' connects to your web server. If the hosts file checks out but this does not work, then we need to edit out apache configuration file which is called httpd.conf and could be located at /etc/httpd/conf/httpd.conf and in this file you need to search for a line that says Listen and make sure that it's shown as Listen:*:80 which means apache will listen for all connections to port 80. We could specifically say Listen:IP_of_computer:80 but then we must always specify that IP. Leave it as Listen:*:80 This way you can use IP to connect or LOCALHOST or http://forums.xisto.com/no_longer_exists/ http://forums.xisto.com/no_longer_exists/ to connect, but from another computer you must use IP or http://forums.xisto.com/no_longer_exists/ unless you setup the hosts files on those computers to redirect to your server, which is much easier to do than setting up a DNS server. Be sure to restart apache after making changes to this file or else it won't be affected till you restart. as root do /sbin/services httpd restart If this does not help, or you have trouble understanding, just let me know and I'll try simplifying or explaining more. Cheers, MC

Share this post


Link to post
Share on other sites

but I just want to affest that 'LOCALHOST' on my computer, and I know, that I have to write that IP on other comuters, to see my serwer.Thanks for the helpAnd I have second question - how can I have a local serwer (for my files and setings from other computers, just like in win 2003, 2000, NT) on Linux? I have 5 computers in home. Is it possible on windows xp (do I have to change my workgroup for domain?)I have to use Samba serwer, yes? Is it hard to do? Can you help me, or give a link for some sites with that configuration?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.