Raised This Month: $51 Target: $400
 12% 

Signatures rewrite for nginx


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 06-26-2013 , 16:34   Signatures rewrite for nginx
Reply With Quote #1

Hi,

does someone know the correct signatures rewrite for nginx?

Code:
RewriteRule sig-(.*)-(.*).png$ sig.php?player_id=$1&background=$2 [L]
Code:
location / {
	rewrite sig-(.*)-(.*).png$ /sig.php?player_id=$1&background=$2 break;
}
is not working :I

Regards,
Rytis
Rytis is offline
gH0sTy
SourceMod Donor
Join Date: Jul 2008
Location: DE
Old 06-27-2013 , 01:27   Re: Signatures rewrite for nginx
Reply With Quote #2

Add this to your server block of your hlx domain config
Code:
rewrite sig-(.*)-(.*).png$ /sig.php?player_id=$1&background=$2 break;
Example:
Quote:
server {
listen 80;
server_name hlstatsx.domain.com;
index index.php;

rewrite sig-(.*)-(.*).png$ /sig.php?player_id=$1&background=$2 break;
}

Last edited by gH0sTy; 06-27-2013 at 01:33.
gH0sTy is offline
Rytis
Veteran Member
Join Date: Feb 2012
Location: Germany
Old 06-27-2013 , 08:06   Re: Signatures rewrite for nginx
Reply With Quote #3

Aww, I love you (no homo), it's working now
But shouldn't that be in location?
Rytis is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode