Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Correct configuration for nginx #9

Open
martip07 opened this issue May 23, 2012 · 1 comment
Open

Correct configuration for nginx #9

martip07 opened this issue May 23, 2012 · 1 comment

Comments

@martip07
Copy link

Hi:

If someone is using nginx for the shortner, this configuration is gonna help you:

server {

listen 256.15.14.123:80;  (IP:PORT)
server_name example.net www.example.net;
root /var/www/example.net;
include php;
access_log  /var/www/cdlst.net-access.log;
error_log  /var/www/cdlst.net-error.log;   


if (!-e $request_filename) { rewrite ^(.+)$ /index.php?q=$1 last; }

}

Hope that helps you :D

@martip07
Copy link
Author

Dont forget to change your genreal nginx conf to set the number of request ............................. :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant