Nette NGINX rewrite rules

1. 2 years ago

pixx
Member
Registered: 2012-09-03
Posts: 7

Nette NGINX rewrite rules

Hello,

I am new to Nette and I can't figure out how to setup the rewrite rules on my nginx server to get working cool URLs. I get all the time 500 Internal Server Error
Can anybody help me with the settings, pleas?

Thanks in advance,
pixx

 

2. 2 years ago

HosipLan
Moderator
Registered: 2009-06-01
Location: Brno
Posts: 4032

 

3. 2 years ago

Patrik Votoček
Moderator
Registered: 2008-03-08
Location: Vrtak-CZ
Posts: 2196

Re: Nette NGINX rewrite rules

try_files       $uri $uri/ /index.php?$args;

https://gist.github.com/1211815#… :-)


Vrtak-CZ | Hledáš práci? | Osobní Blog | Twitter | LinkedIn | GitHub | Nella Project
“Nastala chyba která neměla nastat” aneb “Když se chce všechno jde.”

 

4. 2 years ago

pixx
Member
Registered: 2012-09-03
Posts: 7

Re: Nette NGINX rewrite rules

Thanks to both (:

 

5. about a year ago

broken850
Member
Registered: 2012-11-03
Posts: 1

Re: Nette NGINX rewrite rules

I don't mean Abstract Factory or Factory Method from GoF). It's a widely used pattern (especially in Java).


Thanks

 

Board footer

Switch to desktop