Hello friends,
i am a new bie to nginx i am moving my server from apache to nginx in my apache scriptalias is there how i configure it in nginx
my server is freeBsd
my apache config is
<VirtualHost 69.238.124.110:80>
ServerName imagemetaworks123 .com
DocumentRoot /home/idw/html
ScriptAlias /site/ "/home/idw/site/"
CustomLog /home/idw/logs/access_log combined
ErrorDocument 404 http://imagemetaworks123.com
RewriteEngine On
RewriteRule ^/index.html$ /site/category\.cgi\?category=0 [PT,L]
RewriteRule ^/site/category/(.*)/(.*)/?$ /site/category\.cgi\?category=$1\&template=$2 [PT,L]
RewriteRule ^/site/category/(.*)/?$ /site/category\.cgi\?category=$1 [PT,L]
RewriteRule ^/site/item/(.*)/(.*)/?$ /site/category\.cgi\?item=$1\&category=$2 [PT,L]
RewriteRule ^/site/item/(.*)/?$ /site/category\.cgi\?item=$1 [PT,L]
SSLEngine on
<Location /cgi-bin>
SetHandler speedycgi-script
Options ExecCGI
SpeedyMaxruns 1
SpeedyGroup none
</Location>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
-------------------------------------------------
my nginx.conf
server {
listen :69.238.124.110:80;
server_name imagemetaworks123.com ;
root /home/idw/html;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /home/neal/html/forums$fastcgi_script_name;
include fastcgi_params;
}
include vhost_common;
}
please help me in configuring nginx