Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
added improved nginx rewrite configuration (closes #161)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob-g committed Dec 31, 2015
1 parent 6a962c8 commit 4ba9c7b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -1523,10 +1523,9 @@ function get_db_info($name) {
rewrite ^/<?php echo substr(get_cookie_data('basepath'), 1); ?>/static/(.*?)$ /<?php echo substr(get_cookie_data('basepath'), 1); ?>/static/$1 break;
}
location /<?php echo substr(get_cookie_data('basepath'), 1); ?>/ {
fastcgi_pass 127.0.0.1:;
fastcgi_param SCRIPT_FILENAME /<?php echo substr(get_cookie_data('basepath'), 1); ?>/dispatcher.php;
include fastcgi_params;
rewrite ^(.*)$ /<?php echo substr(get_cookie_data('basepath'), 1); ?>/dispatcher.php;
}

</pre>
<?php
}
Expand Down

1 comment on commit 4ba9c7b

@iggyvolz
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure using rewrite ignores PHP, and you have to use fastcgi to use PHP. Not sure though, I'll have to test it when I get a chance.

Please sign in to comment.