Welcome! Log In Create A New Profile

Advanced

Wildcard docroot?

Daniel
January 18, 2017 03:54PM
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_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Wildcard docroot?

Daniel January 18, 2017 03:54PM

Re: Wildcard docroot?

Aapo Talvensaari January 18, 2017 08:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 249
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready