Current time: 04-18-2024, 10:31 PM Hello There, Guest! (LoginRegister)


Post Reply 
problem of subdomain
Author Message
freed1985 Offline
Junior Member
*

Posts: 17
Joined: Mar 2010
Reputation: 0
Post: #1
problem of subdomain
How can I point a subdomain to my a folder?

for example

my web root is /var/www/virtual/maindomain.com/htdocs

I want to point my subdomain to /var/www/virtual/maindomain.com/htdocs/sub
but when I set point /sub ,It point to /var/www/virtual/maindomain.com/sub/htdocs
and then I set it to /htdocs/sub,but It pointed to /var/www/virtual/maindomain.com/htdocs/sub/htdocs.

Now how can I do to make it to /var/www/virtual/maindomain.com/htdocs/sub with out the htdocs folder?
08-20-2010 06:02 PM
Find all posts by this user Quote this message in a reply
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #2
RE: problem of subdomain
Create your subdomain with "/sub" mount point. Afterwards, login to the server through ssh, remove the "/sub/htdocs" folder and create a symlink /sub/htdocs -> /htdocs/sub.
(This post was last modified: 08-20-2010 09:00 PM by kilburn.)
08-20-2010 09:00 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


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