skip to Main Content

Apache – Deny direct access to executing script

I previously had below which worked ok, RewriteEngine on RewriteRule ^([0-9]+)/?$ /news/index.php?post=$1 [L,QSA] But I don't want it to open like this https://example.com/news/index.php?post=123456 I want it to open only in such a way that it only allows numbers https://example.com/news/123456 is…

VIEW QUESTION

PHP gRPC ignores keepalive parameters

I put these 3 parameters: grpc.keepalive_time_ms=7200000 grpc.keepalive_timeout_ms=200000 grpc.keepalive_permit_without_calls=1 in /etc/php/8.1/apache2/conf.d/20-grpc.ini, /etc/php/8.1/apache2/conf.d/custom-php.ini, /etc/php/8.1/cli/conf.d/20-grpc.ini and /etc/php/8.1/cli/conf.d/custom-php.ini. Then I restart webserver (whole Docker container) and list grpc config with php -i | grep grpc and they are missing from the output: /etc/php/8.1/cli/conf.d/20-grpc.ini, grpc…

VIEW QUESTION

python script running through php (cli and mod-php differences)

here some difficulties with running python script through apache mod-php fname='/tmp/catalog.xml' http=urllib3.PoolManager() response=http.request('GET','https://xxxx/xxxxx.xml') doc=response.data.decode('UTF-8') print('Saving xml...') with open(fname,'w') as catalog: catalog.write(doc) print('Parsing...') this code executed from php script and perfectly works when i execute it from cli like that :…

VIEW QUESTION
Back To Top
Search