python - .htaccess file location for Openshift (for Flask) -


i tried following 2 locations put .htaccess

app/wsgi/.htaccess 

and app/.openshift/config/.htaccess suggested here: where place htaccess file on openshift wordpress?

neither seems correct. added junk .htaccess, site still runs. added

deny  

to top of htaccess file, still site works fine. .htaccess file supposed be?

try reading:

static files go in 'wsgi/static'. can in directory place '.htaccess' file , configure main apache configuration file allows in .htaccess file.

this works if using apache serve static files. if using feature of python web framework or wsgi middleware serve static files, can't default apache configuration there no way affecting things physical 'wsgi/static' directory.

so putting static files?


Comments

Popular posts from this blog

Magento/PHP - Get phones on all members in a customer group -

php - Bypass Geo Redirect for specific directories -

php - .htaccess mod_rewrite for dynamic url which has domain names -