Current time: 11-25-2024, 09:55 PM Hello There, Guest! (LoginRegister)


Post Reply 
Preview Website without DNS pointed
Author Message
sidha Offline
Junior Member
*

Posts: 13
Joined: Aug 2009
Reputation: 0
Post: #4
RE: Preview Website without DNS pointed
The simple method:
1. at one of your already working domain's htdocs dir (/var/www/virtual/alreadyworkingdomain.com/htdocs) make a dir with the name of your new domain:
Code:
mkdir newdomain

2. type:
Code:
mount --bind /var/www/virtual/newnotworkingdomain.com/htdocs/ /var/www/virtual/myalreadyworkingdomain.com/htdocs/newdomain/

3. point your browser to http://myalreadyworkingdomain.com/newdomain/

(To unmount later: umount /var/www/virtual/newnotworkingdomain.com/htdocs/)
(note: at step 2. there is one line with a space between the two paths)
(This post was last modified: 08-02-2009 02:19 AM by sidha.)
08-02-2009 02:02 AM
Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Preview Website without DNS pointed - ctct - 05-23-2009, 01:16 AM
RE: Preview Website without DNS pointed - sidha - 08-02-2009 02:02 AM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)