Welcome! Log In Create A New Profile

Advanced

403 forbidden

Posted by uspilotzzz 
403 forbidden
July 27, 2013 10:36PM
Ok so I am new to using nginx. I started using it to set up some simple password protection on a seedbox. I set it up and it worked all right. I am not sure what happened but I wanted to logout and I was not sure how to so I cleared my history. When I tried it again I got a "403 forbidden" error without even getting a login pop up screen. I closed my browser and opened it up again and got the login but even though I used the right test password I got the "403 forbidden" error again. I am not sure what changed but I am looking for some help.

nginx.conf file as follows

error_log /home/uspilotzzz/.config/nginxpickup/error.log info;
pid /dev/null;
events { worker_connections 128; }
http {
include mimes.conf; #for custom file types
default_type application/octet-stream;
access_log /home/uspilotzzz/.config/nginxpickup/access.log combined;

server_tokens off;
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 4;

output_buffers 1 32k;
postpone_output 1460;

server {
listen 10001 default;
autoindex on; #this is the file list
auth_basic "Personal file server";
auth_basic_user_file conf/htpasswd; #file with user:pass info
root /home/uspilotzzz/mypickupgirls/; #path you want to share
}
}

start file as follows

#!/bin/bash
/usr/sbin/nginxpickup -c ~/.config/nginxpickup/nginx.conf &> /dev/null

htpasswd.conf file as follows

test:$6$8B6WOEJe$H.HXc2eB3neWqP/XkfqJps15BTwManmodvGapaO3eeDsraXMjvpp3TNFVpdFgQ.3sna1MbCPj9qj75evHiOCW0
test2:$6$wBUiqdIR$HchGiRih1IntvDAdLVSNODRSzRDu0RJotiN.gSq/CQghf2VImicj9CYeBkfdLZZp4m.Dj7N.CUKYtQPotCFqO1
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 287
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready