Hi together,
I want to setup a new root server based on Hiawatha webserver for testing. Can you help me to convert the follwing rewrite rules from nginx?
http {
##
# Basic Settings
##
sendfile on;
tcp_nopush on;
tcp_nodelay on;
keepalive_timeout 65;
client_header_timeout 3000;
client_body_timeout 3000;
fastcgi_read_timeout 3000;
client_max_body_size 32m;
fastcgi_buffers 8 128k;
fastcgi_buffer_size 128k;
types_hash_max_size 2048;
# server_tokens off;
# server_names_hash_bucket_size 64;
# server_name_in_redirect off;
include /etc/nginx/mime.types;
default_type application/octet-stream;
location /community {
location ~ ^/community/index.php/.*$ {
try_files $uri $uri/ /community/index.php?$query_string;
}
rewrite ^/community/themes/default/(.*) /community/PF.Base/theme/default/$1 last;
if (!-f $request_filename){
set $rule_0 1$rule_0;
}
if ($rule_0 = "1"){
rewrite ^/community/(file)/(.*) /community/PF.Base/$1/$2 last;
}
rewrite ^/community/(static|theme|module)/(.*) /community/PF.Base/$1/$2 last;
rewrite ^/community/(Apps|themes)/(.*) /community/PF.Site/$1/$2 last;
if (!-e $request_filename){
rewrite ^/community/(.*) /community/index.php?do=/$1 last;
}
}
Another Question: PHPfox Neutron requires PHPExec.. Normally you can setup it by deleting the entry pcntl_exec in php.ini, but it is a security risk. Is there an alternative available?
Thank you very much
Meik