Skip to content

Instantly share code, notes, and snippets.

View kyrias's full-sized avatar
🏳️‍🌈

Johannes Löthberg kyrias

🏳️‍🌈
View GitHub Profile
@alanbriolat
alanbriolat / default.conf
Created September 28, 2011 14:01
nginx userdir + PHP-FPM
server {
listen 80;
server_name localhost;
# ... other default site stuff, document root, etc. ...
location ~ ^/~(?<userdir_user>.+?)(?<userdir_uri>/.*)?$ {
alias /home/$userdir_user/public_html$userdir_uri;
index index.html index.htm index.php;
autoindex on;