Nette NGINX rewrite rules

1. 7 months 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. 7 months ago

HosipLan
Moderator
Registered: 2009-06-01
Posts: 3728

 

3. 7 months ago

Patrik Votoček
Nette Evangelist
Registered: 2008-03-08
Posts: 2365

Re: Nette NGINX rewrite rules

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

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


Sorry my bad english.
Vrtak-CZ | Nella Project | Osobní Blog | Twitter | LinkedIn | GitHub
„Nastala chyba která neměla nastat“ aneb „Když se chce všechno jde.“

 

4. 7 months ago

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

Re: Nette NGINX rewrite rules

Thanks to both (:

 

5. 7 months 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