Wildcard docroot?
Daniel
daniel at linux-nerd.de
Wed Jan 18 20:52:01 UTC 2017
Hi there,
i wanted to try something like a Wildcard DocRoot:
server {
listen 80;
root /var/www/branches/*/current/web/;
server_name auto.deploy.fcse.int;
The Setup looks like this:
/var/www/branches/develop/current/web/
/var/www/branches/master/current/web/
/var/www/branches/feature1/current/web/
/var/www/branches/feature2/current/web/
I wanted now to open the URL like this: auto.deploy.fcse.int/master/ or /develop and so on.
The Problem is that all „projects“ are Symfony projects so current/web must always be set :-/
I hope you guys understand what mean ;)
Cheers
Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.nginx.org/pipermail/nginx/attachments/20170118/805e53e7/attachment.html>
More information about the nginx
mailing list