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=25)
-   -   Accessing websites while domains are propagating (http://www.howtoforge.com/forums/showthread.php?t=60121)

TheVDM 5th January 2013 23:04

Accessing websites while domains are propagating
 
Hi, I would like to know if there is a way to access a website before the domain is set up or while it is propagating like you can when using cPanel with 111.111.111.111/~domain

Regards
Jim

tahunasky 6th January 2013 03:34

Because the clients are not under the default document root (/var/www/html) you can't.

However you can make a symbolic link to the website in the html doc root.

All client websites are in this format:
/var/www/clients/client1/web2/web

ln -s /var/www/html/mywebsite /var/www/clients/client1/web2/web

then you can access it like:

192.168.1.1/mywebsite

till 6th January 2013 18:58

Please see faq:

http://www.faqforge.com/linux/contro...-a-dns-record/

Quote:

Originally Posted by tahunasky (Post 290404)
Because the clients are not under the default document root (/var/www/html) you can't.

However you can make a symbolic link to the website in the html doc root.

All client websites are in this format:
/var/www/clients/client1/web2/web

ln -s /var/www/html/mywebsite /var/www/clients/client1/web2/web

then you can access it like:

192.168.1.1/mywebsite

This will not work for sites that contain scripts or cms sysetms as you will access the files with a wrong user.


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

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