Mysterious 301s
Ok, I have nginx running on a server. I don't mind sharing the URLs. One site on the server is rentmy.world - both www.rentmyworld and rentmyworld work, as http and https. Now I'm trying to bring back...
View ArticleRe: log/list IP Address accessing folder
There is a /logs folder which only has the files error.log and nginx.pid in it
View ArticleRe: log/list IP Address accessing folder
Got it working. Had to define access_log; access_log /logs/access.log
View ArticleRe: How do I let linux assign the port that nginx listens on?
This can be done by establishing the listening port external to nginX and then using the "NGINX" environment variable to pass the file descriptor to nginX, e.g.: NGINX="3;" nginx You need to specify...
View ArticleRe: log/list IP Address accessing folder
How do I correctly set buffer size and file size for the access log in windows?
View ArticleRe: log/list IP Address accessing folder
If you are referring to ' open_log_file_cache', open_log_file_cache max=1000 inactive=20s valid=1m min_uses=2; Others, open_file_cache max=1000 inactive=20s; open_file_cache_errors on;...
View ArticleHow to set up a NGINX captive portal for a website?
Hello, I have two servers. On one I run a website called `example.com` And at the moment I use the other server as a Nginx proxy. So I aimed the domain to the proxy server, which proxy passes the IP of...
View ArticleRe: log/list IP Address accessing folder
Hi , no, I was referring to the windows nginx.conf setting; log_format compression '$remote_addr - $remote_user [$time_local] ' '"$request" $status $bytes_sent ' '"$http_referer" "$http_user_agent"...
View ArticleRe: log/list IP Address accessing folder
Its a flat file which gets appended, there is no size regulation.
View ArticleRe: log/list IP Address accessing folder
Okay, is there something else I can do to about keeping the log file small?
View ArticleRe: log/list IP Address accessing folder
Rename the logfile and signal nginx to reopen logs (nginx -s reopen) I think, check the options.
View ArticleRe: log/list IP Address accessing folder
Okay, so what will this do for me? Do I have to run this every hour or something? Thanks
View ArticleRe: log/list IP Address accessing folder
Try it and see, run it once a day and see how big/small the logs are.
View ArticleHow to allow access to a URL from only a selected IP
I am using Nginx on my Ubuntu 18.04 box, running OpenHAB. I am only wanting a particular IP on my network to be able to browse to any URL with '/paperui/' in the address. My configuration files looks...
View ArticleRe: log/list IP Address accessing folder
It didn't seem to do anything with the access.log file :( I can't rename it or delete it ahead of time before doing nginx -s reopen because I get access denied
View ArticleSmtp proxy, modify headers, possibile?
I want to use Nginx as a smtp proxy, is it possibile to add headers to email message being proxied?
View ArticleRe: How to allow access to a URL from only a selected IP
The following appears to almost work server { listen 80; server_name 192.168.1.25; return 301 https://$server_name$request_uri; } server { listen 443 ssl; server_name 192.168.1.25; root /var/www/html;...
View ArticleRe: log/list IP Address accessing folder
I do it all the time, rename, reopen and move renamed files, works for all log files. Look at access rights who does the rename.
View ArticleRe: log/list IP Address accessing folder
You do it while nginx is running? if I stop the logging then I can delete it but while nginx in running, it has the file locked.
View ArticleRe: log/list IP Address accessing folder
Yes while its running, locking has no bearing as a FD uses a link not a name while its open. FOR %%G IN (*.log) DO ren "%%G" "%datename%_%%G" nginx -s reopen sleep 5 move /y %datename%_*.* data
View Article