Auto Set Rules to Custom HTTPD Configurations

mamadletsgo

Verified User
Joined
Mar 2, 2015
Messages
68
Location
iran,tehran
Hello ,
I asked this question before , But I did not manage to solve the problem
Is there a way that this code To automatically create User set to Custom HTTPD Configurations

Code:
location ~* ([a-zA-Z]*[c]+[a-zA-Z]*)/(users|ranks|smilies)$ {
                return 404;
        }
if (!-f $request_filename){
	set $rule_0 1$rule_0;
}
if (!-d $request_filename){
	set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
	rewrite /. /index.php last;
}
location ~*  \.(jpg|jpeg|png|gif|ico|css|js|woff|ttf)$ {
    expires 365d;
}

Please tell me if there's a way

thanks ,
 
This training is not understandable
Please step by step
Simply explain
My Web Server is Nginx + php-fpm
This command what to do ?
Custom nginx configuration: /usr/local/directadmin/data/users/user/domains/domain.com.cust_nginx
Custom apache configuration: /usr/local/directadmin/data/users/user/domains/domain.com.cust_httpd
Custom php-fpm configuration: /usr/local/directadmin/data/users/user/php/php-fpm55.conf.custom1
 
Back
Top