Quantcast
Channel: Nginx Forum - How to...
Browsing all 4759 articles
Browse latest View live
↧

windows 7 + Nginx + Python

Hi all,Last Nginx/mariaDB/php is installed on windows 7Python 3.4 is insttaledNow, how can i develop "hello" python page web and si "Hello" with Nginx server ?I would like develop in PHP and...

View Article


Re: windows 7 + Nginx + Python

http://stackoverflow.com/questions/7048057/running-python-through-fastcgi-for-nginxhttp://wiki.nginx.org/PythonFlupIts just like you would run PHP(-cgi.exe)

View Article


Issue with the try_files and status page

Hello guys,I just noticed a problem with my Nginx installation: I enable the PHP FPM status page (url: /status). Then I add the location block on a default virtual host allowing only 127.0.0.1 to...

View Article

Re: Issue with the try_files and status page

As a workaround, I must add the following block into any server configuration using try_files:location ~ ^/(status|ping)$ {deny all;}This is only a workaround and it remains risky because I might...

View Article

Backend with multiple URIs

Hi,I have been using nginx for the past 5 years, and use it for a lot of projects. But I am unable to set this certain configuration up.I have a site that has a set amount of sub-uri's pointing to the...

View Article


Re: Nginx config for the server as SSL proxy

Hi everyone,I solve my issue. The reason was in my router - I forgot to forward 443 port...

View Article

Re: Streaming remote files/Printing out chunks

Does anyone have an idea on how to solve this?

View Article

Conditionally include conf files in ngin

I have a conf file and I want to include it in nginx.conf only if it exists....how can that be done ?Can we have an if statement before include ?

View Article


Conditionally include conf files in ngin

I wish to include a conf file in nginx.conf only if it exists..is it possible ??

View Article


Strip away cookie related headers from nginx response for static content

Given this piece of nginx configuration to serve static content from static.domain.tldserver {listen 80;server_name static.domain.tld;root /path/to/files;error_log /path/to/log;sendfile on;tcp_nopush...

View Article

how to proxy a website to a virtual directory

I have 2 internal site: www.site1.com and www.site2.com. and I have a site:www.abc.com to the internet. how to configure nginx so I can visit first site with www.abc.com/site1 and visit the other site...

View Article

Rewrite setting for md file type to StackEdit

What I need is to turn on autoindex, and while click on the file, redirect .md file to stackedit site. what i did is to add rewrite as below:location ~* \.(md)$ {rewrite ^(.*)...

View Article

Rewrite

Hello, moved from one version to another joomla. need to http requests html opened without htmlthe code below did not help me, gives 500 error, but if I remove the hands .html page that opens...

View Article


Most efficient way of disabling gzip for one specific file

I want to enable gzip for all files in a server block except for one specific file (track.php) which will have a lot of POST requests.What is most performant of the two following?# ALTERNATIVE...

View Article

Re: Nginx with Liferay (Tomcat) SSL+LB

Hi OSC!I have same problem, and here's the solution:The web browsers brake the connections between nginx and liferay! You want to connect from ssl server ( nginx ) to not ssl server( liferay ) and it's...

View Article


Redirect depending on $upstream_cache_status

Is there a way to jump to different locations depending on $upstream_cache_status?I tried something likeset $skip_cache 0;if ($upstream_cache_status = HIT) {set $skip_cache 0;}if...

View Article

Re: Redirect depending on $upstream_cache_status

See https://github.com/openresty/lua-nginx-module/issues/125

View Article


pass URL parameters to PHP script or SQL to auhtorize

HiIs this possible to call external php script or SQL to perform authorization?For example:http:serwer/secure?user=user&pass=passlocation /secure {if...

View Article

Re: owncloud nginx directive for ispconfig

Markus,If you still have a problem, check this out:https://www.howtoforge.com/community/threads/ispconfig-3-and-owncloud-nginx-ceontos-6-5-on-vps.68139/#post-324306It helped me out.I'm running...

View Article

Protect folder from running php and html

HiI am using this to disallow php running on a folder:location ~^(/uploads/).*(\.php)$ {deny all;}but how can i disallow both php and html to run on this folder?Or is it possible to allow only images...

View Article
Browsing all 4759 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>