|
|
|
|
![]() ![]() |
Jul 30 2005, 12:13 PM
Post
#1
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 29 Joined: 30-July 05 Member No.: 7,525 |
Hello
I have some problem with my apache - I want to configure it to work, when I write in my browser 'http://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 This post has been edited by microscopic^earthling: Jul 31 2005, 04:50 PM |
|
|
|
Jul 30 2005, 12:42 PM
Post
#2
|
|
|
Pretty please? Group: Members Posts: 733 Joined: 28-November 04 From: Holland Member No.: 1,552 |
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 CODE 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. |
|
|
|
Jul 30 2005, 12:53 PM
Post
#3
|
|
|
PESTICIDAL MANIAC Group: Members Posts: 626 Joined: 1-September 04 From: Auckland, New Zealand Member No.: 27 |
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 'http://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://127.0.0.1/' 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 http://IP_of_Computer to connect or http://localhost or http://127.0.0.1 http://computername/ to connect, but from another computer you must use http://IP_of_Computer or http://computername/ 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 |
|
|
|
Jul 30 2005, 12:58 PM
Post
#4
|
|
|
Newbie [ Level 2 ] Group: Members Posts: 29 Joined: 30-July 05 Member No.: 7,525 |
but I just want to affest that 'http://localhost' on my computer, and I know, that I have to write that IP on other comuters, to see my serwer.
Thanks for the help And 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? |
|
|
|
![]() ![]() |
Similar Topics
| Topics | Topics | |
|---|---|---|
|
|
|
|
Lo-Fi Version | Time is now: 4th December 2008 - 11:25 PM |