BlackWarrior писал(а):1. httpd.conf это конфиг apache, его в папку apache\conf
2. службы ставим в автозапуск через панель управления\администрирование\службы
3. Server2go закомментирован (rem)
4. mysql\bin\mysqld-nt.exe --install и после этого он в службах добавится
mysql установился, но не запускается, ошибка 1067, гуглил, не понял как решить.
server {
listen 80; ## listen for ipv4; this line is default and implied
#listen [::]:80 default_server ipv6only=on; ## listen for ipv6
root /var/www;
index index.html index.htm index.php default.html;
# Make site accessible from http://localhost/
server_name 0.0.0.0;
charset utf-8;
location ~ index\.html$ {
}
location fckeditor {
}
location ~ banner\.html$ {
}
location flashcoms {
}
location google {
}
location fck {
}
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
index index.html index.htm index.php;
# Uncomment to enable naxsi on this location
# include /etc/nginx/naxsi.rules
rewrite pda$ /popup/pda.html redirect;
if (!-e $request_filename){
rewrite ^(.*)$ /nf.php;
}
if (!-e $request_filename){
rewrite ^(.*)$ /nf.php;
}
}
location /config.php {
deny all;
}
location /debmes.txt {
deny all;
}
# Only for nginx-naxsi used with nginx-naxsi-ui : process denied requests
#location /RequestDenied {
# proxy_pass http://127.0.0.1:8080;
#}
error_page 404 /index.php;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root /usr/share/nginx/www;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
# NOTE: You should have "cgi.fix_pathinfo = 0;" in php.ini
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
location ~ /\.ht {
deny all;
}
}
Последний раз редактировалось zlayaptichka Ср апр 02, 2014 3:48 pm, всего редактировалось 1 раз.