![]() |
Any Nginx / WordPress Experts here?
We're having some nasty issues on our Nignx / WordPress setup. I'm getting to a place of panic because revenue is being impacted, affiliates are really upset and started to pull traffic - it's really impacting us.
I just need someone who knows this type of setup inside and out to look at it and provide some feedback. We can then pass that on to the hosting company - maybe help that way. Any pros that can be recommended? |
Quote:
Thanks |
I gonna guess how you have issue with url rewrites, so yes this is hosting issue so your host should resolve it.
|
I can take a look. Contact me.
|
If you ever want unmanaged hosting with optional support when you need it, please consider us in the future.
https://cs.mojohost.com/cart.php?gid=23 Plans starting at $10, support starting at $29. Best of luck - if you're still in a bind tomorrow during the day EST send me an email and I'll make a tech available to you. Cheers, Brad |
Quote:
Quote:
Quote:
The hosting company thought it was the W3 Total Cache plugin, so we disabled it on both sites, but still same issue. Quote:
|
Quote:
|
If you're happy where you're at then by all means stay there. We sell mostly fully managed solutions, though are recently marketing unmanaged as well. If there is anything I can do to help, please don't hesitate to contact me if you get stuck. I would expect that this is something any managed host could help you with.
Thank you Brad |
Are you still having issues with this?
|
have a peek here
https://github.com/pothi/wordpress-nginx has multiple examples and tweaks. catchall domains, ssl, multisite etc. https://github.com/pothi/wordpress-n...ites-available |
Quote:
This what you described it looks like what I think is, hardcoded absolute urls. 2 places to check: 1) database, dump database as .sql and opens in any txt editor, try to find stage site urls, it there are beta.example.com replace it with example 2) code, search entire public_html and try to find beta.example hardcoded in php Lastly if this what I described is true, dump those developers ... After this check you could proceed to nginx. This is my wp nginx that works for years server { listen 80; server_name example.com; root /home/sites/example.com/public_html; access_log /home/sites/example.com/logs/access.log; error_log /home/sites/example.com/logs/error.log; location / { index index.html index.htm index.php; include /home/sites/example.com/public_html/nginx.conf; } location = /xmlrpc.php { deny all; #access_log off; #to prevent from filling up the access log file #error_log off; #to prevent from filling up the error log file } location ~ \.php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm-sites.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)(\?ver=[0-9.]+)?$ { expires 1y; log_not_found off; } } server { listen 80; server_name www.example.com; root /home/sites/example.com/public_html; access_log /home/sites/example.com/logs/access.log; error_log /home/sites/example.com/logs/error.log; location / { index index.html index.htm index.php; include /home/sites/example.com/public_html/nginx.conf; } location = /xmlrpc.php { deny all; #access_log off; #to prevent from filling up the access log file #error_log off; #to prevent from filling up the error log file } location ~ \.php$ { try_files $uri =404; include /etc/nginx/fastcgi_params; fastcgi_pass unix:/var/run/php5-fpm-sites.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } location ~* \.(js|css|png|jpg|jpeg|gif|ico)(\?ver=[0-9.]+)?$ { expires 1y; log_not_found off; } } make sure server paths match yours. And this is nginx.conf for wp pretty links rewrite, notice include it above conf location / { index index.html index.htm index.php; include /home/sites/example.com/public_html/nginx.conf; } so this is nginx.conf rewrite ^.*/files/(.*)$ /wp-includes/ms-files.php?file=$1 last; #if (!-e $request_filename) { #rewrite ^(.+)$ /index.php?q=$1 last; #} if (!-e $request_filename) { rewrite . /index.php last; } commented part #if (!-e $request_filename) { #rewrite ^(.+)$ /index.php?q=$1 last; #} was original I found for wp but somehow this one below works better on my server. |
Most probably you have the beta subdomain config wrong. If it used to work before you added it, there it is you should look.
|
Quote:
I tried to talk to you on skype but didn't hear anything back. Any page/post/media created on the beta site gets assigned a url in the database that links to the beta site. The urls are not relative urls; they are the full http links. You can't just move the beta database to the main site without changing the urls in the database. If the beta site used the same database as the main site to test, then anything page/post/media added on the test site will have to be changed in the database. :2 cents: |
Quote:
|
All times are GMT -7. The time now is 12:12 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc