Networkologist

Well-Known Member
Feb 5, 2003
215
2
168
After setting up a new account that either still resides on a different host and the name servers haven't been changed yet or does not want to go live and hasn't entered name servers, viewing the site as:

http://123.456.78.9/~username/ doesn't display images if they are stored in an images or whatever folder.

Is there any other way to view a new account and test the setup completely; cgi scripts, etc.?
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
Spain
Originally posted by Networkologist
After setting up a new account that either still resides on a different host and the name servers haven't been changed yet or does not want to go live and hasn't entered name servers, viewing the site as:

http://123.456.78.9/~username/ doesn't display images if they are stored in an images or whatever folder.
Depending on how the images are being called that could be normal behaviour. For instance:

<img src="/images/logo.png">

would correspond to:

http://123.456.78.9/images/logo.png

which is not where the image is.

Is there any other way to view a new account and test the setup completely; cgi scripts, etc.?
You might create a subdomain of your domain and make its DocumentRoot be your user's DocumentRoot.
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
Spain
Ok, suppose your domain is yourisp.com

Now from yourisp.com cpanel you create a temporary
subdomain for your customer, say username.yourisp.com.

Now open httpd.conf with your text editor and search for username.yourisp.com. You'll see something like this:

DocumentRoot /home/yourisp/public_html/username

Change that to:

DocumentRoot /home/username/public_html/

and restart apache. Your customer can now use username.yourisp.com to test his/her web pages. Don't forget to remove the subdomain when the DNS change is done (unless you give free bandwidth, of course ;) ).