Custom settings for temporary url's (/~user)

martinostlund

Verified User
Joined
Feb 10, 2011
Messages
13
Hello.

Before our customers have pointed their domain to our control, their website is hosted on the default http://server-ip/~user

This tilde-user setup is default of /etc/httpd/conf/extra/httpd-vhosts.conf:
Code:
    AliasMatch ^/~([^/]+)(/.*)* /home/$1/public_html$2
    DocumentRoot /var/www/html

We need to have a <Directory>AllowOverride All</Directory> setting on /~user, but setting this in the httpd-vhosts.conf only affects the DocumentRoot, which is wrong.

Is there any way to make / allow specific values for /~user configuration?

Regards,
Martin
 
As user scsi points out, changing the hosts file on the local computer (the ones you and/or your client use to test/access the site) is the best way to go. Why? Because WordPress and some other CMS applications will only work if the URL is the same as insalled when setting up the CMS.

Jeff
 
Back
Top