View Single Post
  #6  
Old 15th April 2013, 20:35
nackgr nackgr is offline
Member
 
Join Date: Nov 2012
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
Default

and now i get

Code:
[root@host ~]# /etc/init.d/nginx restart
nginx: [emerg] unexpected end of file, expecting "}" in /etc/nginx/sites-enabled/100-e-byte.gr.vhost:123
nginx: configuration file /etc/nginx/nginx.conf test failed

i pasted that to directives nginx

Code:
location ^~ /(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ { internal; }
  location /var/export/ { internal; }
  location /. { return 404; }
  location @handler { rewrite / /index.php; }
  location ~* .php/ { rewrite ^(.*.php)/ $1 last; }
  location ~* .php$ {
    if (!-e $request_filename) { rewrite / /index.php last; }

site-enable conf
Code:
server {
        listen *:80;


        server_name e-byte.gr www.e-byte.gr;

        root   /var/www/e-byte.gr/web;



        index index.html index.htm index.php index.cgi index.pl index.xhtml;



        error_page 400 /error/400.html;
        error_page 401 /error/401.html;
        error_page 403 /error/403.html;
        error_page 404 /error/404.html;
        error_page 405 /error/405.html;
        error_page 500 /error/500.html;
        error_page 502 /error/502.html;
        error_page 503 /error/503.html;
        recursive_error_pages on;
        location = /error/400.html {

            internal;
        }
        location = /error/401.html {

            internal;
        }
        location = /error/403.html {

            internal;
        }
        location = /error/404.html {

            internal;
        }
        location = /error/405.html {

            internal;
        }
        location = /error/500.html {

            internal;
        }
        location = /error/502.html {

            internal;
        }
        location = /error/503.html {

            internal;
        }

        error_log /var/log/ispconfig/httpd/e-byte.gr/error.log;
        access_log /var/log/ispconfig/httpd/e-byte.gr/access.log combined;

        ## Disable .htaccess and other hidden files
        location ~ /\. {
            deny all;
            access_log off;
            log_not_found off;
        }

        location = /favicon.ico {
            log_not_found off;
            access_log off;
        }

        location = /robots.txt {
            allow all;
            log_not_found off;
            access_log off;
        }

        location /stats {

            index index.html index.php;
            auth_basic "Members Only";
            auth_basic_user_file /var/www/clients/client12/web26/web/stats/.htpasswd_stats;
        }

        location ^~ /awstats-icon {
            alias /usr/share/awstats/icon;
        }

        location ~ \.php$ {
            try_files /4657a24ec4feccf1c4ac4e483ef026a9.htm @php;
        }

        location @php {
            try_files $uri =404;
            include /etc/nginx/fastcgi_params;
            fastcgi_pass 127.0.0.1:9035;
            fastcgi_index index.php;
            fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
            #fastcgi_param PATH_INFO $fastcgi_script_name;
            fastcgi_intercept_errors on;
        }


        location ^~ /(app|includes|lib|media/downloadable|pkginfo|report/config.xml|var)/ {
internal; 
        }
        location /var/export/ {
internal; 
        }
        location /. {
return 404; 
        }
        location @handler {
rewrite / /index.php; 
        }
        location ~* .php/ {
rewrite ^(.*.php)/ $1 last; 
        }
        location ~* .php$ {
            if (!-e $request_filename) { rewrite / /index.php last; }


        }
Reply With Quote