Re: accessing localhost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Craig White wrote:

----
1 - I meant for you to substitute the ip address for eth0 or eth1 or
whatever the LAN ip address was for the second line in /etc/hosts - not
put it in literally. If that ip address is assigned by DHCP that is a
mistake since running servers is always tough when you can't access them
by ip (forgetting for the moment ddns)

2 - My experience with webmin and the apache module is that it is
helpful when you understand apache setup and confusing when you don't.
Anyway...

you can always use an apache directive...
      Alias /horde/ /var/www/html/horde/

to redirect

or in your case, I would prefer to keep the html in the /var/www/html
tree and put a link from your home directory to there

ln -s /var/www/html /home/lokrin/www/www
but of course, you would have to move the contents of
/home/lokrin/www/www to /var/www/html first

or the way you are trying to do things...
ln -s /home/lokrin/www/www /var/www/html/www

The important thing...first and foremost is that you can access via dns
or host resolution...

ping localhost
ping lokrin

if these don't work, apache ain't gonna work.

Craig




ping works fine on both localhost and lokrin.

--------
[root@lokrin root]# ping -c3 lokrin
PING lokrin.com (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.112 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.109 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.110 ms

--- lokrin.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2005ms
rtt min/avg/max/mdev = 0.109/0.110/0.112/0.008 ms
[root@lokrin root]#
--------

Where would I add that apache directive?

I added the

ln -s /var/www/html /home/lokrin/www/www

Not sure if I sent this yet or not: Even CHMOD to 777 for the entire folder and all folders files below doesn't help.

I don't have a lan. Just a single home computer.



Ok, why don't we start from the beginning...

How do I set up a website on my single home computer for viewing on the same single home computer?




-- Shrike-list mailing list Shrike-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux