PDA

View Full Version : Two Domain, Two Sites



cervanli
10-11-2006, 01:11 PM
Hi everyone, hopefully someone can help me.

I am a sort of newbie to having my own domain. I currently have two domains (www.abc.net <primary> & www.123.com <secondary>) under my plan. when I visit www.123.com, I am able to view the www.abc.net site. I want each domain to have their own site.

I did try the following. I created a directory html2 and created "index.html" in that directory. I pointed www.123.com to that directory but now it is not displaying anything (and yes I do have verbage in the file). It looks like the browser is not finding the page andjust sits there searching.

any ideas???
:confused:

rolling
10-11-2006, 04:46 PM
The answer to all your troubles can probably be found in the file /var/log/httpd/error_log

In order to access this, you will need to download one of the two SSH clients (http://members.westhost.com/ssh-software.html) that Westhost recommends and learn a bit of Linux. The SSH clients are bits of software which let you connect to your web server using encrypted communications so that noone else can see what you are up to and cause you problems. PuTTY is really easy to use and FREE.

Once you have run PuTTY, login in using your user name and password. If you get this right, you will be presented with a prompt along the lines of "[mydomain] [~]$" which indicates that you are in your home directory [~]. This is shorthand for /home/domain (Try the command pwd to see for yourself). If you want to list the files in the current directory, then type ls. The best resource I have found for learning the UNIX commands is http://unixhelp.ed.ac.uk/CGI/man-cgi

To try and find out the problem use the command tail -f /var/log/httpd/error_log. If you then access the problem page using your browser, you will see what your website is trying to do. Type Control-C (hold the Ctrl key down on your keyboard and then press the C key, in the same way as you use the shift key to get a capital C) to end the tail command. The other file that may shed some light is the access_log file /var/log/httpd/access_log

If that is too daunting for you, then try contacting Westhost support - they are really helpful. The URL for support is http://members.westhost.com/contactus.html. Live Support is available 24 hours a day and they are quick to answer, or you can submit a support ticket.

Richard

wildjokerdesign
10-11-2006, 06:05 PM
Can you tell use where you created the html2 directory? Is it perhaps /var/www/html2 or /var/www/html/html2? Changes can take some time to propogate at times. In theroy they should not but in practice I have found this to be so depending on what I am doing and the level of an account I am dealing with.

torrin
10-12-2006, 09:53 AM
Did you restart apache?

cervanli
10-29-2006, 08:45 AM
I know this is a little late, but thank you all from replying. I have the site runing. It seems it took a while for the items to post. Thanks again :)