Hi, Running a WP site under nginx. There is a requirement to increase the script timeout value (max_execution_time) as an operation on the site is timing out. I'd rather not increase that value for all parts of the site, as it increases the risk of DDoS attacks, so what I'd like to do is only increase it for the wp-admin directory, where users will be logged in and can be held accountable. Cby plutocrat - How to...
Hi, So the conditional logging example on nginx website is this, which I've tried, and it works as advertised. ----------- map $status $loggable { ~^[23] 0; default 1; } access_log /path/to/access.log combined if=$loggable; ----------- What happens if I also want to stop logging for clients with the User Agent "Zabbix"? If I try this ... ----------------- mby plutocrat - How to...
Francis Daly Wrote: ------------------------------------------------------- > "Default" there means that if a server{} block does not have any > listen directive, it is equivalent to "listen *:80" (or "listen *:8080" if > running as non-root). > > Your "letsencrypt" server{} block does not have any listen directive. Oh wow. It was thby plutocrat - Nginx Mailing List - English
So, just to be clear, these are the ones running now without varnish. Of course the lines with listen 80 are changed to listen 8080, and when I restart nginx, it appears on ports 80, 8080 and 443.by plutocrat - Nginx Mailing List - English
OK, was trying to keep the post relevant and succinct, but here goes with the config. Its a newly set up server, so pretty much standard. ============================= # cat nginx.conf user www-data; worker_processes auto; pid /run/nginx.pid; events { worker_connections 768; # multi_accept on; } http { # required for letsencrypt verification server {by plutocrat - Nginx Mailing List - English
Robert Paprocki Wrote: ------------------------------------------------------- > Without showing your nginx config it's unlikely that anyone will be able to > troubleshoot. Likely there is a stray listen directive that's causing this. There are no stray listen directives. I've checked many times. grep -ril listen /etc/nginx Shows only files in sites-enabled and sites-available direcby plutocrat - Nginx Mailing List - English
Hi, I'm having an odd problem here. I'm trying to set up nginx with a varnish proxy in front of it. The box is Ubuntu 15.10, nginx 1.9.3, varnish 4.0.3. For testing I set up varnish on port 8080, and nginx was running on port 80 and 443. I shut down both, edit the config files so that varnish is listening on port 80 and forwarding to the nginx backend on 8080. I do a search and replace on aby plutocrat - Nginx Mailing List - English
Haha, Thanks for the support itpp2021. I actually opened up a new thread recently about a different problem (actually a solution to a problem I found and thought I'd share). While I was logged in, I looked for old threads and found this one. Basically 9 posts from me with no other takers, and I couldn't resist a sarcastic comment! For the record, in the end I did give up and moved the blogsby plutocrat - Migration from Other Servers
Did you see this post in SMF forums? http://www.simplemachines.org/community/index.php?topic=206578.0by plutocrat - Migration from Other Servers
Ever get the feeling you're talking to yourself ...by plutocrat - Migration from Other Servers
There has previously been some discussion of how the configs of Wordpress Multisite on nginx.org and wordpress.org are both not working correctly for recent versions of Wordpress past version 3.5. eg. http://forum.nginx.org/read.php?2,249743,249780#msg-249780 I'd like to focus down on one element of this. So in previous versions of Wordpress, uploaded files are referenced in a directory calby plutocrat - Migration from Other Servers
I gave up on this one in the end. I just moved all the blogs to a separate domain ... blog.domain.com and used a standard Wordpress nginx config. All works well (although the Wordpress migration was a pain). I put some redirects in from domain.com/blog to blog.domain.com and all traffic is now going to the new domain. If anyone ever figures out the Wordpress Multisite in a Subdirectory conby plutocrat - Migration from Other Servers
I believe the N flag is implied in nginx rules. Unless you put last or break at the end of the rule, it will keep matching. So the equivalent to the Apache rules you mention above is this: rewrite ^/(api/redirect/[^\/]+/[^\/]+/[^\/]+)/([^\/]+)/([^\/]+)([^\?]*) /$1$4/?&$2=$3; rewrite ^/api/redirect/[^\/]+/[^\/]+/([^\/]+) /index.php?service=Redirect&hash=$1 last; You seem to have soby plutocrat - Migration from Other Servers
The scripts at tuxlite.com may help you out, http://tuxlite.com/usage/ These will let you allocate control of a website (uploading, editing files etc) to a user on the system. But I don't know if that's what you want as you don't really give much information as to what you're trying to achieve. Maybe you're looking for something more like http://www.ispconfig.org/ ? In which case this tutorby plutocrat - Migration from Other Servers
Still trying to figure this one out. The following configuration was working, so I thought. location /blog { # debug # rewrite_log on; try_files $uri $uri/ @wordpress; } location @wordpress { rewrite ^/blog/([_0-9a-zA-Z-]+/)?files/(.+) /blog/wp-includes/ms-files.php?file=$2 last; rewrite ^/blog/([_0-9a-zA-Z-]+/)?wp-admin$ /blog/$1wp-admin/ permby plutocrat - Migration from Other Servers
Did you try this site ... might take some of the grunt work out of it for you .. http://www.anilcetin.com/convert-apache-htaccess-to-nginx/ I notice these forums are pretty silent. I've been talking to myself for the last week in another thread.by plutocrat - Migration from Other Servers
So I've added this rule. # Rewrite to load image files rewrite ^/blog/.*/files/(.*) /blog/wp-includes/ms-files.php?file=$1 break; This appears in the logs, so I know its been matched, and its generating the correct URL out. 2011/12/16 08:21:14 4977#0: *18 "^/blog/.*/files/(.*)" matches "/blog/simon/files/2008/02/p1000287.thumbnail.JPG" 2011/12/16 08:by plutocrat - Migration from Other Servers
# Rewrite to strip the blogname out of URLs. rewrite ^/blog/([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) /blog/$2 break; Adding this line gives me my css and theme-related images back. Interestingly, using any of the if ( -e $request_filename ) or if ( !-e $request_filename) constructs doesn't work. Next problem is trying to get the embedded / uploaded images to show up. I'vby plutocrat - Migration from Other Servers
OK, back to basics. I've stripped everything out and am starting from first principles. # Wordpress Config in /blog directory ##################### location /blog { try_files $uri $uri/ /blog/index.php; } This _single_ configuration line in the Wordpress subdirectory block gets me all the pages on the root blog working correctly. (ie domain.com/by plutocrat - Migration from Other Servers
Latest try ... same config for the location / stanza (because that's working OK) , and replacing the location /blog bit with the following code adapted from here. http://wordpress.org/support/topic/nginx-php-fpm-php-apc-wordpress-multisite-subdirectory-wp-super-cache Result ... still just get the Joomla (ie not even wordpress) 404 page when I try to access any sub-blogs. The main blog page stilby plutocrat - Migration from Other Servers
This config gives me a Joomla 404 error page ========================================= ## domain.com server has a Joomla install, with wordpress in the /blog/ subdirectory ## server { listen 80; # Answer to both www and non-www requests. server_name www.domain.com domain.com; # File locations root /home/serveradmin/domains/domain.com/public_htmlby plutocrat - Migration from Other Servers
Hi all, Been lurking for a few months, and have managed to figure out how to migrate a bunch of sites on Wordpress, Wordpress MultiUser, and Joomla over to nginx. I've also set up nginx as a proxy in front of apache. So I'm not a complete novice. However this particular configuration has got me puzzled. The site in question is a Joomla site running in the root of the webserver ie. domain.com/by plutocrat - Migration from Other Servers
![]() |
![]() |
![]() |
![]() |
![]() |