<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi,<div class=""><br class=""></div><div class="">i create a vhost confuguration for a vhost but i ma not able to access /vakanz for exmaple.</div><div class="">I got a 404 error on the access logs.</div><div class="">I Tried already with rewrite rules and i also tried with locations, no matter what i do, nothing works.</div><div class="">Anyone has an idea what can i do?</div><div class=""><br class=""></div><div class="">Cheers</div><div class=""><br class=""></div><div class="">Daniel</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><p style="font-family: HelveticaNeue;" class=""> server {</p><p style="font-family: HelveticaNeue;" class=""> listen 80;</p><p style="font-family: HelveticaNeue;" class=""> root /var/www/vhosts/reisen/sbo/current/web;</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class="">rewrite ^/static/(.*) /var/www/vhosts/reisen/fe/static/$1 last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/hrouter.js /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/router.js /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/(vakanz|vrij|ajax|boek|buchen)$ /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/(vakanz|vrij|ajax|boek|buchen)/.* /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/himage/.* /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/image/.* /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/images/.* /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">rewrite ^/nur-flug$ /flight/destination permanent;</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> set $my_https "off";</p><p style="font-family: HelveticaNeue;" class=""> if ($http_x_forwarded_proto = "https") {</p><p style="font-family: HelveticaNeue;" class=""> set $my_https "on";</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""> server_name <a href="http://preprod.reisen.de" class="">preprod.reisen.de</a>;</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> location / {</p><p style="font-family: HelveticaNeue;" class=""> index app.php;</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Origin "*";</p><p style="font-family: HelveticaNeue;" class=""> if (-f $request_filename) {</p><p style="font-family: HelveticaNeue;" class=""> break;</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""> try_files $uri @rewriteapp;</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> location @rewriteapp {</p><p style="font-family: HelveticaNeue;" class=""> if ( $request_filename !~ opcache\.php ){</p><p style="font-family: HelveticaNeue;" class=""> rewrite ^(.*)$ /app.php/$1 last;</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class="">#rewrite ^/(vakanz|vrij|ajax|boek|buchen)$ /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class="">#rewrite ^/(vakanz|vrij|ajax|boek|buchen)/.* /var/www/vhosts/reisen/fe/index.php last;</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""># location /vakanz {</p><p style="font-family: HelveticaNeue;" class=""># alias /var/www/vhosts/reisen/fe/;</p><p style="font-family: HelveticaNeue;" class=""># }</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class="">location ~* .js$</p><p style="font-family: HelveticaNeue;" class=""> {add_header Service-Worker-Allowed "/";</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> location ~ ^/app\.php/_apilogger(/|$) {</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_split_path_info ^(.+\.php)(/.*)$;</p><p style="font-family: HelveticaNeue;" class=""> include fastcgi_params;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SCRIPT_NAME $fastcgi_script_name;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param PATH_INFO $fastcgi_path_info;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param HTTPS $my_https;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SYMFONY__CMS__ENABLED false;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param CMS_ENABLED false;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_buffer_size 128k;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_buffers 4 256k;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_busy_buffers_size 256k;</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Origin "*";</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> # Prevents URIs that include the front controller. This will 404:</p><p style="font-family: HelveticaNeue;" class=""> # <a href="http://domain.tld/app.php/some-path" class="">http://domain.tld/app.php/some-path</a></p><p style="font-family: HelveticaNeue;" class=""> # Remove the internal directive to allow URIs like this</p><p style="font-family: HelveticaNeue;" class=""> internal;</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> location ~ ^/proxy\.php(\?|/|$) {</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_split_path_info ^(.+\.php)(.*)$;</p><p style="font-family: HelveticaNeue;" class=""> include fastcgi_params;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SCRIPT_NAME $fastcgi_script_name;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param PATH_INFO $fastcgi_path_info;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param HTTPS $my_https;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SYMFONY__CMS__ENABLED false;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param CMS_ENABLED false;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_buffer_size 128k;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_buffers 4 256k;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_busy_buffers_size 256k;</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Origin "*";</p><p style="font-family: HelveticaNeue;" class=""> # Prevents URIs that include the front controller. This will 404:</p><p style="font-family: HelveticaNeue;" class=""> # <a href="http://domain.tld/app.php/some-path" class="">http://domain.tld/app.php/some-path</a></p><p style="font-family: HelveticaNeue;" class=""> # Remove the internal directive to allow URIs like this</p><p style="font-family: HelveticaNeue;" class=""> #internal;</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> location ~ ^/app\.php(/|$) {</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_pass unix:/var/run/php/php7.0-fpm.sock;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_split_path_info ^(.+\.php)(/.*)$;</p><p style="font-family: HelveticaNeue;" class=""> include fastcgi_params;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SCRIPT_NAME $fastcgi_script_name;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param PATH_INFO $fastcgi_path_info;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param HTTPS $my_https;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param SYMFONY__CMS__ENABLED false;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_param CMS_ENABLED false;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_buffer_size 128k;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_buffers 4 256k;</p><p style="font-family: HelveticaNeue;" class=""> fastcgi_busy_buffers_size 256k;</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Headers "Origin, X-Requested-With, Content-Type, Accept";</p><p style="font-family: HelveticaNeue;" class=""> add_header Access-Control-Allow-Origin "*";</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> # Prevents URIs that include the front controller. This will 404:</p><p style="font-family: HelveticaNeue;" class=""> # <a href="http://domain.tld/app.php/some-path" class="">http://domain.tld/app.php/some-path</a></p><p style="font-family: HelveticaNeue;" class=""> # Remove the internal directive to allow URIs like this</p><p style="font-family: HelveticaNeue;" class=""> internal;</p><p style="font-family: HelveticaNeue;" class=""> }</p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""><br class=""></p><p style="font-family: HelveticaNeue;" class=""> }</p></div><div class=""><br class=""></div></body></html>