eZ Platform Discussions

[eZ Launchpad] How to reload nginx?


#1

I made a modification in ezplatform/doc/nginx/ez_params.d/ez_rewrite_params

#Add a public folder to be able to make files available via http (Like RSS)
rewrite "^/var/([^/]+/)?storage/public/(.*)" "/var/$1storage/public/$2" break;

How do I get that taken into account?


#2

Hello

ez stop nginx; ez start nginx; should be enough.
ez build nginx; ez stop nginx; ez up nginx if it is not.

:wink:


#3

Hello @Plopix,

First I corrected my rewrite:

rewrite "^/var/([^/]+/)?storage/public/(.*)" "/var/$1storage/public/$2" break;

I’ve tried both solutions. But it doesn’t work…


#4

Okay. It works… Well yes but no

My file is in web/var/site/storage/public/my_public_file.txt

But the url should be: http://localhost:35080/my_siteaccess/var/site/storage/public/my_public_file.txt

it works with: http://localhost:35080/var/site/storage/public/my_public_file.txt

knowing that in production I would have one domain name per site_access. And that the public files will have the name of the access_site. Is this gonna work?


#5

C’est bon :slight_smile:

# Add a public folder to be able to make files available via http (Like RSS)
rewrite "^/([^/]+/)?var/([^/]+/)?storage/public/(.*)" "/var/$2storage/public/$3" break;
rewrite "^/([^/]+/)?public/(.*)" "/public/$2" break;

Merci @Plopix.


Too simple RSS script