Vhosts and Need Help

Discussion in 'General' started by jruyle, Jan 31, 2008.

  1. jruyle

    jruyle New Member

    When I build websites, I'll often run several different versions of the site at subdomains, then when I need to go live, Ill just change my httpd.conf file.

    The server I'm currently developing on uses ISPConfig.

    My problem is I've made changes to:

    /etc/httpd/conf/vhosts/Vhosts_ispconfig.conf

    where my address was:

    /var/www/web61/web

    and I would like to change it to:

    /var/www/web61/web/stable

    When I change it and restart apache, it works just fine. But after several hours, it reverts back to the old address. How can I fix this without having to move the files everytime?

    Thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The file Vhosts_ispconfig.conf is written automatically by ISPCOnfig, you can not do any manual changes there.

    What you can try to do is to add aache rewrite rules in the apache directives field of the website that rewrite all incoming requests to the new subdirectory.
     

Share This Page