PDA

View Full Version : a simple question on sub-domain forwarding... I think...


dimas
26th July 2006, 13:51
I hope the question is simple - but I can't figure it out myself...

Let's say I created a user web1_music. A folder /srv/www/web1/user/web1_music is created automatically. This is the folder where I get when I log in with an ftp client with the username 'web1_music'. OK, this folder has 'web' subfolder - and I want to forward sub-domain music.mydomain.com to this folder. But I don't know how! If I put the full path /srv/www/web1/user/web1_music/web to the 'forward' field of the sub-domain - I get the 'page not found' error! If I put simply 'music' there - everything is fine, the forwarding works to http://www.mydomain.com/music.

Can I forward to /srv/www/web1/user/web1_music/web?

TheRudy
26th July 2006, 15:03
Leave Forward field empty..

dimas
26th July 2006, 15:37
thank you, but if this field is left empty, the main page of the site is displayed...

TheRudy
26th July 2006, 16:01
Oh you mean users account, sorry missed that part.. Not sure if its possible..
users web is accessed by domain.tpl/~user so.. you would probably have to change config file to work that but wait for someone elses answer..

dimas
26th July 2006, 16:53
Actually, all I want to do is to grant separate ftp access to folders that hold subdomains. If I have music.mydomain.com subdomain - how can I grant ftp access ONLY to a folder holding it? (It doesn't really matter if this folder is in the user area or if it's a sub-folder of the main site).

dimas
26th July 2006, 22:32
By the way, when I try to put in the 'forward' field an url like:
http://www.mydomain.com/~web1_music/
ispconfig returns an error - something about illegal characters.

At the same time this url works fine if I just type it in the browser.

till
27th July 2006, 10:04
You can use this notation instaed:

http://www.domain.tld/users/web1_music/

dimas
27th July 2006, 11:37
Thank you very much indeed! That's all I need!

3cwired_com
1st August 2007, 18:49
You can use this notation instaed:

http://www.domain.tld/users/web1_music/

Is there a way i could use something like this to allow someone to temporarily view their website, while the dns is updating with their new domain name.

for instance:
I am the host.
www.3cwired.com

you come to the site purchase package for foobar.com

while dns is updating, can I make it where you can access your temp web location to

www.3cwired.com/users/foobar or webxx_foobar?

falko
2nd August 2007, 18:45
for instance:
I am the host.
www.3cwired.com

you come to the site purchase package for foobar.com

while dns is updating, can I make it where you can access your temp web location to

www.3cwired.com/users/foobar or webxx_foobar?
You could try to set up a symlink from www.3cwired.com/users/foobar to the new web site. Of course, the www.3cwired.com vhost must be configured to allow symlinks: http://httpd.apache.org/docs/2.0/mod/core.html#options (FollowSymLinks)

3cwired_com
3rd August 2007, 15:44
but can this happen automatically, while I sleep where, someone signs up, then they are allowed to automatically get their temp address...

falko
4th August 2007, 12:38
You'd have to write some kind of script for it.