Re: accessing localhost

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

 



redhat wrote:
William Hooper wrote:
Craig White said:
[major trimage]
  
My hosts file starts out as:

127.0.0.1    localhost
127.0.0.1    localhost.localdomain    localhost
127.0.0.1    lokrin.com    lokrin
      
---
AFAIK - the right way to do this would be...
127.0.0.1	localhost.localdomain	localhost
ip_eth_0_or_1   lokrin.lokrin.com       lokrin

# no reason that I can think of to otherwise name the loopback device at
all.
    

It helps if you are on DHCP, and IIRC is the default setup.

On the other hand, it is the default setup all on one line.

127.0.0.1     localhost.localdomain localhost lokrin.lokrin.com lokrin

I don't know how multiple lines would react.  Also assuming the OP has
lokrin.com registered...

  
Ok, I added

127.0.0.1     localhost.localdomain localhost lokrin.lokrin.com lokrin

and

127.0.0.1	localhost.localdomain	localhost
ip_eth_0_or_1   lokrin.lokrin.com       lokrin
  
still no change

as for DHCP and IIRC and OP (?) - - -

I only want to call the site up from the same computer that the site is on.  I don't want anyone on the net to be able to call it up.  My computer domain is set up for lokrin.com.  My REAL website is at lokrin.net.  I want to be able to work the site code locally and see what happens (when I make mistakes).

What gets me is that I was able to do it. Now I can't.

Also, it says I don't have permission to access "/" .  Does this mean it is trying to access my root directory rather than my site directory, which according to webmin is:

Virtual Servers

Default Server
Defines the default settings for all other virtual servers, and processes any unhandled requests.
Address Any
Port Any
Server Name Lokrin
Document Root /var/www/html            (default)
Virtual Server
Handles the name-based server on all addresses
Address Any
Port Any
Server Name Lokrin                              (path same as hosted site)
Document Root /home/lokrin/www/www
Virtual Server
Processes all requests on port 443 not handled by other virtual servers.
Address Any
Port 443
Server Name new.host.name:443
Document Root /var/www/html            (default)


And the site IS located in both places.  I need to set a link to redirect /var/www/html to the /home/lokrin/www/www sometime later....



Thanks


make sure the directory permissions allows the httpd process to read the particular directory / your document root.. ( rwxr--r--  or 0744 ) .
assuming httpd is running as apache.apache ( user.group )

Regards
Anoop Chandran



______________________________________
Scanned and protected by Email scanner

GIF image


[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