I installed Nginx 1.25 on RockyLinux 9.2 and am trying to figure out how to do HTTP/3. I noticed that the ssl and http2 directives are now depreciated so am wondering how it is done now since most of the tutorials online have referenced these directives. Has anyone figured it out?by tommygunner - How to...
Thanks. I only have one IP for the VPS server.by tommygunner - How to...
I have a domain name that I use with Nginx 1.13 and don't want to to have IP resolvable via browser. I was trying to do this in the /etc/nginx/conf.d/default.conf but was stilling getting 403 error message so then created another config file under sites-enabled with the following: server { listen 80 default_server; server_name 0.0.0.0; return 444; } (Replace 0.0by tommygunner - How to...
I occasionally have issues with certain IP addresses trying to access locations for scripts that have vulnerabilities. You can see some of these below: GET /bannerslideradmin/adminhtml_bannerslider/index HTTP/1.1" GET /iwdall/adminhtml_support/index HTTP/1.1 GET /soldtogether/adminhtml_order/index HTTP/1.1 I am running Magento and Nginx 1.13. In my /etc/nginx/sites-enabled/mydomain.cby tommygunner - How to...
I am using Nginx 1.13 and have removed all the "if"s from the config file and would now like someone to analyse it, look at the rewrites, etc if possible. It works fine but seems a bit unorganized and I'm wondering if there are some duplicate things. I have created a bunch of 444 locations to drop the malicious scripts and visitors from reading such locations which don't exist. I also maby tommygunner - Nginx Mailing List - English
Thanks! I got it to work but had to put my fastcgi stuff inside. location ~ \.php$ { try_files $uri /index.php; # fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock; expires off; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; ## Tweak fastcgi buffers, just in case. fastcgi_buffer_size 256kby tommygunner - Nginx Mailing List - English
I am using Nginx 1.13 and have read that using "if" is a poor solution. I have looked through my configuration file and found one and would like to rewrite it without the "if". Does anyone know how to rewrite this snippet? ## Execute PHP Scripts using FastCGI location ~ \.php(/.*)? { if (!-e $request_filename) { rewrite / /index.php last; } Thanksby tommygunner - Nginx Mailing List - English
changing location line to: location ^~ /media/po_compressor/ { should allow it to look for all files within this directory and sub-directories, right?by tommygunner - Nginx Mailing List - English
I have gzip enabled in Nginx as well as gzip_static. I am trying to limit gzip_static to just one or two sections. There are pre-compressed files inside the directory: media/po_compressor/ along with sub directories of this such as: media/po_compressor/4/js media/po_compressor/4/css Here is what I have below in nginx. What is the best way to look inside directory and sub-directories using loby tommygunner - Nginx Mailing List - English