"UserDir" Setups?
Posted by: VZ2iCarly (107.25.130.---)
Date: March 18, 2013 04:21AM

Hello:

how to make it to be able to go for example localhost/~somerandomename? i've heard of apache mod-userdir. how to do it?

Options: ReplyQuote
Re: "UserDir" Setups?
Posted by: zdy (27.17.16.---)
Date: March 18, 2013 09:37AM

1
down vote
favorite
I have set up a Debain 6 VPS for PHP web developpement / personal hosting and have a quick question :

I want to host production code in : /var/www/site.com, and developpement code in /home/username/public_html/site

I have set up userdir.conf (Default setup I think) :

<IfModule mod_userdir.c>
UserDir public_html
UserDir disabled root

<Directory /home/*/public_html>
AllowOverride All
Options MultiViews Indexes SymLinksIfOwnerMatch
<Limit GET POST OPTIONS>
Order allow,deny
Allow from all
</Limit>
<LimitExcept GET POST OPTIONS>
Order deny,allow
Deny from all
</LimitExcept>
</Directory>
</IfModule>
I can access both codebases via : www.site.com and www.site.com/~username/site respectively

My question Is : What is the best way restrict www.site.com/~username/site (My project in developpement state) to the outside world ? ( .htaccess, virtualhost setup, other )www.cusabio.com/ELISA_Kit-84600/ il-6 elisa kit

Options: ReplyQuote


Sorry, only registered users may post in this forum.