a simple question on sub-domain forwarding... I think...

Discussion in 'Installation/Configuration' started by dimas, Jul 26, 2006.

  1. dimas

    dimas Member

    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?
     
  2. TheRudy

    TheRudy ISPConfig Developer ISPConfig Developer

    Leave Forward field empty..
     
  3. dimas

    dimas Member

    thank you, but if this field is left empty, the main page of the site is displayed...
     
  4. TheRudy

    TheRudy ISPConfig Developer ISPConfig Developer

    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..
     
  5. dimas

    dimas Member

    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).
     
  6. dimas

    dimas Member

    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.
     
  7. till

    till Super Moderator Staff Member ISPConfig Developer

  8. dimas

    dimas Member

    Thank you very much indeed! That's all I need!
     
  9. 3cwired_com

    3cwired_com New Member

    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?
     
  10. falko

    falko Super Moderator ISPConfig Developer

    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)
     
  11. 3cwired_com

    3cwired_com New Member

    but can this happen automatically, while I sleep where, someone signs up, then they are allowed to automatically get their temp address...
     
  12. falko

    falko Super Moderator ISPConfig Developer

    You'd have to write some kind of script for it.
     

Share This Page