Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Hello everyone, I am trying to create a UDID protected Cydia Repo but I cannot use it on nginx because of nginx does not use the .htaccess file. The file certain rewrite rules to make it run. Here are a copy of the Repo: https://github.com/ic0nic/UDID-repo Below is a copy of the .htaccess file.

RewriteEngine On

RewriteBase /your_repo_folder/
RewriteRule ^(Release)$ release.php
RewriteRule ^(Packages.*)$ package.php
share|improve this question
    
Read documentation for nginx Rewrite Module –  AlexD Oct 21 '12 at 10:17

1 Answer 1

Nginx don't have any plugin for Htaccess, but it has very nice language (like Perl) for config. Try this

location ~* ^/your_repo_folder/ {
rewrite ^(Release)$ release.php permanent;
rewrite ^(Packages.*)$ package.php permanent;
}
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.