![]() |
Roboscripts Nginx conf
Hello,
I still have some sites running with robot scripts, and I have moved to a new server, but for some reason, the performer's page and tags aren't working. When I click on the models, it just shows me the index page, not the performer page. Same thing with the tags. Does anyone have any working nginx conf? Or anyone knows how to fix my config? Thanks Edit: I forgot to mention that my performer's page is like this: https://domain.com/user/performersname/ And tags are: https://domain.com/tag/anal/ This is my conf: Code:
server { |
I asked: do you see any errors in this code?
Answer: Yes, there are several issues and improvements that can be made to this Nginx configuration: 1. **Port 443 and SSL Configuration Missing `ssl` Directive:** - When listening on port 443, SSL should be explicitly enabled with the `ssl` directive: ```nginx listen 443 ssl; ``` 2. **Mixed Configuration Directive Styles:** - It's better to separate and organize your configurations for port 80 and 443 for clarity, especially if you implement HTTP to HTTPS redirection. 3. **Potential Overuse of `rewrite`:** - Some usages of `rewrite` may not require the complexity it introduces. Consider using `location` blocks and `try_files` if suitable for static redirects. 4. **Multiple Rewrite Issues:** - Ensure that the rewrite rules make sense logically and syntactically. There are potential issues, like `rewrite ^/tag/(.*)$ /./tag/index.php?url=$1;` where `./` may be unintended. - Rewrites can be performance-heavy; evaluate if they are all necessary or if there could be a more efficient way to handle routing. 5. **File Type Regex Pattern:** - The exhaustive list of file extensions may include some unnecessary ones, and using them in a single regex pattern can slow down request processing. Consider simplifying this or breaking it into multiple `location` blocks if needed. 6. **Denial of Access to Hidden Files:** - The `location ~ /\. { deny all; }` block can protect hidden files (those starting with a dot), but this block might overlap with the `.well-known` location. Value specificity in location matching. 7. **Misconfigured ETag:** - `etag off;` isn't a default directive. It's generally managed via `etag` or `add_header ETag $etag;`. 8. **`fastcgi_pass`:** - This directive assumes you have a PHP-FPM upstream named `php56-fpm`. Ensure your upstream is correctly configured or using a socket path. 9. **Server-wide or Location-based Security Headers:** - Consider adding basic security headers such as `Strict-Transport-Security` (HSTS), `X-Content-Type-Options`, `X-Frame-Options`, or `Content-Security-Policy` if relevant to your application needs. 10. **`access_log off;` Directive:** - Turning off logging can help with performance but should be used judiciously to aid in debugging when needed. |
this was the code it spit out:
Code:
server { |
Did you update Yoast?
This was the problem we saw with newer versions of Yoast. |
Quote:
Its fixed now. Thanks |
All times are GMT -7. The time now is 01:19 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc