HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=15)
-   -   View Website Internally (How To) (http://www.howtoforge.com/forums/showthread.php?t=13268)

Broady 8th June 2007 02:43

View Website Internally (How To)
 
Hi All,
I am fairly new to Linux and new to ISPConfig. I have just followed the ISPConfig documentation and created a website (broadyswebdesign.com)

I am not sure how to actually view the website. What I mean is that I am trying to view the site inside my network. So using http://www.broadyswebdesing.com always pops up the login box for my DLink DSL-604T router.

My internal IP address for my Linux server is 10.1.1.2

So I guess I have to view my site by going to http://10.1.1.2/[website]
I am not sure what the rest of the url should be. This is the first site created in ISP.

My current host file looks like this:
Code:

127.0.0.1  localhost.localdomain localhost
123.108.66.3  server1.broadyswebdesign.com  server1  localhost.localdomain

i hope this all makes sense. Mainly I want to know how to view my website and view it internally if possible.

Any help is greatly appreciated
Thanks

chuckl 8th June 2007 07:37

You need to add a line to the hosts file (on the machine from which you are trying to access the server).

10.1.1.2 www.broadyswebdesign.com

In your example above it would be below the 2 listed.

Broady 8th June 2007 07:48

Quote:

Originally Posted by chuckl
You need to add a line to the hosts file (on the machine from which you are trying to access the server).

10.1.1.2 www.broadyswebdesign.com

In your example above it would be below the 2 listed.

How exactly would I add the above to the hosts file?

Like this:
10.1.1.2 www.broadyswebdesign.com broadyswebdesign ?

Thanks

chuckl 8th June 2007 08:19

Exactly as I wrote it, or your example is probably fine as well. Just make sure there is a space or 2 between the IP address and the name. If it is a Windows box, be very careful of Notepad, Wordpad etc as they love adding a 'hidden' .txt extension, which will break everything. A DOS commandline edit is safest.
On a Windows system, the hosts file is hidden off the main Windows folder on C:

e.g. C:\Windows\system32\drivers\etc\hosts

Broady 8th June 2007 10:22

Thanks all for your help, I got it working. I changed the hosts file on Windoze and the Linux Box and now I can view the site by http://www.broadyswebdesign.com


All times are GMT +2. The time now is 10:04.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.