How to enable nginx support to seo URL

Ercan DAĞ

New member
Joined
Dec 17, 2012
Messages
4
Hello everyone,

I using DirectAdmin 1.44.0 with custombuild 2.0 latest version.

My options.conf;

#PHP settings.
#Default version of PHP is always php1_release. Possible values for php1/php2_release: 5.3, 5.4, 5.5, no. php1/php2_mode: mod_php, fastcgi, php-fpm or suphp)
php1_release=5.3
php2_release=no
php1_mode=php-fpm
php2_mode=mod_php
htscanner=yes
php_ini=yes
php_timezone=MSD
#Possible values - production or development
php_ini_type=production
ioncube=yes
x-mail-header=yes
zend=yes

#HTTP server. Possible values: apache, nginx
webserver=nginx

#Apache settings
#Possible value: 2.4
apache_ver=2.4
mod_ruid2=no
secure_htaccess=yes
harden-symlinks-patch=yes
use_hostname_for_alias=yes
redirect_host=server1.tdl.com
redirect_host_https=yes

#Possible values - 5.1, 5.5, 5.6
mysql=5.6
mysql_inst=no
mysql_backup=yes
mysql_backup_dir=/usr/local/directadmin/custombuild/mysql_backups

#Web applications
phpmyadmin=yes
phpmyadmin_ver=4
squirrelmail=yes
roundcube=yes

.....

./build all d working fine. But I have a smf forum I using pretty url mod's my forum post giving ' 404 Not Found
nginx'

How to solved this issue ?
How to re-build htscanner add to php.ini ?
I'm waiting for your advice : )
 

DirectAdmin Support

Administrator
Staff member
Joined
Feb 27, 2003
Messages
8,961
Hello,

I'm not too familiar with htscanner, but I believe it's designed to let you make changes to php.ini setting using an .htaccess file with mod_php isn't being used.
I might be wrong, but I don't think it's for any mod_rewrite things, as that's Apache related.

Nginx, although very fast, doesn't have the same level of options that Apache does, with regards to how DA set's it up. (much requires direct editing of the nginx.conf which DA does not allow Users to do)
For most people, we typically still recommend Apache.

John
 

MtK

Verified User
Joined
Aug 2, 2007
Messages
412
Ercan DAĞ;243582 said:
How to solved this issue ?
How to re-build htscanner add to php.ini ?
I'm waiting for your advice : )
do you have the corresponding .htaccess from SMF that holds the rewrite rules?
 

Ercan DAĞ

New member
Joined
Dec 17, 2012
Messages
4
We are using in php site CB 2.x with nginx. Have performed very well

but .htacess not support

We have edit sites htacess file with winginx.com/htaccess. But not working
 

smtalk

Administrator
Staff member
Joined
Aug 22, 2006
Messages
8,483
Location
LT, EU
You need to paste rewrite rules in "Custom HTTPD Configuration" (admin level).
 

Ercan DAĞ

New member
Joined
Dec 17, 2012
Messages
4
kindly;

# Auto generated apache config file by DirectAdmin version 1.44.1
# Modifying this file is not recommended as any changes you make will be
# overwritten when the user makes any changes to his/her website

# For global config changes that affect all Users, see this guide:
# http://help.directadmin.com/item.php?id=2
# For local config changes that only affect one User, see this guide:
# http://help.directadmin.com/item.php?id=3


server
{
listen 178.20.231.20:80;
server_name karincahosting.net www.karincahosting.net ;
access_log /var/log/nginx/domains/karincahosting.net.log;
access_log /var/log/nginx/domains/karincahosting.net.bytes bytes;
error_log /var/log/nginx/domains/karincahosting.net.error.log;
root /home/karinca/domains/karincahosting.net/public_html;
index index.php index.html index.htm;
# use fastcgi for all php files
location ~ \.php$
{
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/nginx_limits.conf;
if (-f $request_filename)
{
fastcgi_pass unix:/usr/local/php54/sockets/karinca.sock;
}
}
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
include /etc/nginx/webapps.conf;
}

server
{
listen 178.20.231.20:80;
server_name canlidestek.karincahosting.net www.canlidestek.karincahosting.net ;
access_log /var/log/nginx/domains/karincahosting.net.canlidestek.log;
access_log /var/log/nginx/domains/karincahosting.net.canlidestek.bytes bytes;
error_log /var/log/nginx/domains/karincahosting.net.canlidestek.error.log;
root /home/karinca/domains/karincahosting.net/public_html/canlidestek;
index index.php index.html index.htm;
# use fastcgi for all php files
location ~ \.php$
{
try_files $uri =404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
include /etc/nginx/fastcgi_params;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include /etc/nginx/nginx_limits.conf;
if (-f $request_filename)
{
fastcgi_pass unix:/usr/local/php54/sockets/karinca.sock;
}
}
# deny access to apache .htaccess files
location ~ /\.ht
{
deny all;
}
include /etc/nginx/webapps.conf;
}
 
Top