LINUX.ORG.RU
ФорумMobile

Веб сервер ksweb mod_rewrite nginx


1

1

Здравствуйте, поставил на андроид веб сервер ksweb, но при установки кмс пишет не поддерживает mod_rewrite , хотя он есть , не пойму как его настроить , вот конфиг хоста локалхост порт 8080:

#Do not remove this label! #_TYPE_=5 #======

server {

#begin_port (do not remove this label!) listen 8080; #end_port (do not remove this label!)

#begin_hostname (do not remove this label!) server_name localhost; #end_hostname (do not remove this label!) #begin_docroot (do not remove this label!) root /mnt/sdcard/htdocs; #end_docroot (do not remove this label!)

index index.html index.htm index.php;

location @rewrite { rewrite ^/(.*)$ /index.php?q=$1; }

location / { try_files $uri $uri/ @rewrite; }

error_page 500 502 503 504 /50x.html; location = /50x.html { } location ~ \.php$ { fastcgi_pass unix:/data/data/ru.kslabs.ksweb/php.sock; include /data/data/ru.kslabs.ksweb/components/nginx/conf/fastcgi_params; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; } }

При установке кмс нажимаю далее, просто обновляется страница



Последнее исправление: vacok (всего исправлений: 1)

Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.