Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName www.yourdomain.tld
- DocumentRoot /var/www/
- # Serve static and media files via alias
- Alias /mediagoblin/mgoblin_static/ /path/to/mediagoblin/mediagoblin/static/
- Alias /mediagoblin/mgoblin_media/ /path/to/mediagoblin/user_dev/media/public/
- # Rewrite all URLs to fcgi, except for static and media urls
- RewriteEngine On
- RewriteRule ^mediagoblin/(mgoblin_static|mgoblin_media)($|/) - [L]
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteRule ^/mediagoblin/(.*)$ /mediagoblin/mg.fcgi/$1 [QSA,L]
- # Allow access to static and media directories
- <Directory /path/to/mediagoblin/mediagoblin/static>
- Order allow,deny
- Allow from all
- </Directory>
- <Directory /path/to/mediagoblin/mediagoblin/user_dev/media/public>
- Order allow,deny
- Allow from all
- </Directory>
- # Connect to fcgi server
- FastCGIExternalServer /var/www/mediagoblin/mg.fcgi -host 127.0.0.1:26543
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement