I try to use auth for .password , but after key in username and password , the page just blank only , .php file can't run , pls help , setting as below : location ^~/phpmyadmin { fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME /home/httpd/html/phpmyadmin$fastcgi_script_name; auth_basic "Restricted"; auth_basic_user_file /home/httpd/html/phby e123e123e123 - Nginx Mailing List - English
another question , using 'alias' or 'root' is bestter ? or all is same ?by e123e123e123 - Nginx Mailing List - English
Thanks for all Good Ngnix Supporter , now gif / jpeg can display already . >> Sorry, don't forget to add the auth to php block too or anyone can bypass the auth when accessing php files do u mind , sorry my english not good : location ~ ^/phpmyadmin/(.*\.php)$ { alias /home/httpd/html/phpmyadmin/$1; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fcgi.conf; fastcgiby e123e123e123 - Nginx Mailing List - English
Hi edogawaconan : i change to : location ~ ^/phpmyadmin($|/.*) { alias /home/httpd/html/phpmyadmin$1; index index.php index.html index.htm; auth_basic "Restricted"; auth_basic_user_file /home/httpd/html/phpmyadmin/.htpasswd; } gif /jpeg can display but all php file show out all sources file . Thanks.by e123e123e123 - Nginx Mailing List - English
sorry i just learn nginx 3 days only , so location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ need change to what ??by e123e123e123 - Nginx Mailing List - English
example : http://website1.website.com/abc.gif <--- can display .gif http://website1.website.com/phpmyadmin/mylogo.gif < ---- can't dispaly .gif the config file as below : ----------------------------------------------------------------------------------------------- user username username; worker_processes 8; error_log /var/log/nginx_error.log crit; pid /usr/loby e123e123e123 - Nginx Mailing List - English
> location ~ ^/phpmyadmin/(.*\.php)$ { > alias /home/httpd/html/phpmyadmin/$1; > fastcgi_pass ...; > fastcgi_index ...; > include ...; > fastcgi_param SCRIPT_FILENAME $request_filename; > } Thanks for your help , now can run already , but 1 problem is why alias folder can't display .gif or.png file ? other not alias folder not this problem. Thanaks.by e123e123e123 - Nginx Mailing List - English
Dear Friends : I can run php , but have php problem when using alias folder , all *.php file display below text : --------------------------- No input file specified. --------------------------- but all html file all are no problem. pls help and advise , i just try move to nginx . Thanks. ----------------------------------------------------- below is nginx.conf -----------by e123e123e123 - Nginx Mailing List - English