Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #11  
Old 31st July 2012, 18:13
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Quote:
Originally Posted by poolet View Post
seems that ispconfig have mandated to redirects the request of login screen back to the current web site...
ISPConfig isn't doing anything like that.

Can you post your nginx.conf and all your nginx vhost files as well as the output of
Code:
ifconfig
?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Sponsored Links
  #12  
Old 1st August 2012, 22:15
poolet poolet is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 2 Times in 1 Post
Default

Quote:
Originally Posted by falko View Post
Can you post your nginx.conf and all your nginx vhost files as well as the output of ifconfig?

nginx.conf

Code:
user              nginx;
worker_processes  1;

error_log  /var/log/nginx/error.log;
#error_log  /var/log/nginx/error.log  notice;
#error_log  /var/log/nginx/error.log  info;

pid        /var/run/nginx.pid;


#----------------------------------------------------------------------
# Events Module 
#
#   http://wiki.nginx.org/NginxHttpEventsModule
#
#----------------------------------------------------------------------
events {
    worker_connections  1024;
}
#----------------------------------------------------------------------
# HTTP Core Module
#
#   http://wiki.nginx.org/NginxHttpCoreModule 
#
#----------------------------------------------------------------------

http {
fastcgi_cache_path /var/cache/nginx2 levels=1:2 keys_zone=microcache:5m max_size=1000m;

log_format cache '$remote_addr - $remote_user [$time_local] "$request" '
'$status $upstream_cache_status $body_bytes_sent "$http_referer" '
'"$http_user_agent" "$http_x_forwarded_for"';

    include      /etc/nginx/mime.types;
    access_log  /var/log/nginx/access.log;
    sendfile        on;
    #tcp_nopush     on;
    #keepalive_timeout  0;
    keepalive_timeout   2;
    tcp_nodelay        on;
    gzip  on;
    gzip_http_version 1.1;
    gzip_vary on;
    gzip_comp_level 6;
    gzip_proxied any;
    gzip_types text/plain text/html text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js;
    gzip_buffers 16 8k;
    gzip_disable "MSIE [1-6]\.(?!.*SV1)";
    include /etc/nginx/conf.d/*.conf;
    include /etc/nginx/sites-enabled/*;

upstream php {
server 85.XX.XX.122:9000;
}}
ispconfig.vhost
Code:
server {
        listen 8080 ssl;
        ssl_certificate /usr/local/ispconfig/interface/ssl/ispserver.crt;
        ssl_certificate_key /usr/local/ispconfig/interface/ssl/ispserver.key;

        server_name _;

        root   /usr/share/nginx/html;

        client_max_body_size 20M;

        location / {
               index index.php index.html;
        }

        # serve static files directly
        location ~* ^.+.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt)$ {
               access_log        off;
        }

        location ~ \.php$ {
               try_files $uri =404;
               include /etc/nginx/fastcgi_params;
               fastcgi_pass unix:/var/lib/php5-fpm/ispconfig.sock;
               fastcgi_index index.php;
               fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
               fastcgi_param PATH_INFO $fastcgi_script_name;
               fastcgi_buffer_size 128k;
               fastcgi_buffers 256 4k;
               fastcgi_busy_buffers_size 256k;
               fastcgi_temp_file_write_size 256k;
        }
        location ~ /\. {
               deny  all;
        }
}
default.conf(located in conf.f folder of nginx installation)
Code:
#
# The default server
#
server {
    listen       80;
    server_name  anymvs.com *.anymvs.com;
    #charset koi8-r;
   
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;
   
     root /usr/share/nginx/html;
 
    location / {
        index  index.html index.htm index.php;
    }
    
    if (!-e $request_filename) {
        rewrite ^(.+)$ /index.php?q=$1 last;
    }

    # pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
    #
    location ~ \.php$ {
    set $no_cache "";
    
    if ($request_method !~ ^(GET|HEAD)$) {
        set $no_cache "1";
     }    
    if ($no_cache = "1") {
            add_header Set-Cookie "_mcnc=1; Max-Age=2; Path=/";
            add_header X-Microcachable "0";
     }    

    if ($http_cookie ~* "_mcnc") {
                    set $no_cache "1";
     }
        fastcgi_no_cache $no_cache;
        fastcgi_cache_bypass $no_cache;
        access_log /var/log/nginx/access.log cache;
        
        fastcgi_cache microcache;
        fastcgi_cache_key $server_name|$request_uri;
        fastcgi_cache_valid 404 30m;
        fastcgi_cache_valid 200 10s;
        fastcgi_max_temp_file_size 1M;
        fastcgi_cache_use_stale updating;
        fastcgi_pass 127.0.0.1:9000;
        fastcgi_pass_header Set-Cookie;
        fastcgi_pass_header Cookie;
        fastcgi_ignore_headers Cache-Control Expires Set-Cookie;
        fastcgi_index  index.php;
        #fastcgi_param  SCRIPT_FILENAME  /usr/share/nginx/html/$fastcgi_script_name;
        fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;        
        fastcgi_split_path_info ^(.+\.php)(/.+)$;
        fastcgi_param  PATH_INFO          $fastcgi_path_info;
        #fastcgi_param  PATH_TRANSLATED    $document_root$fastcgi_path_info;   
        include        fastcgi_params;
    }
    #location ~ /~([a-zA-Z0-9]*)/(.*) {
    #root /usr/share/nginx/html;
    #autoindex on;
    #index index.php;
    #rewrite ^/~([a-zA-Z0-9]*)/(.*)$ /$1/www/$2 break;
#}    
    #location /admincp/
   # {
   # deny all;
   # auth_basic            "Restricted Folder";
   # auth_basic_user_file  /etc/nginx/.htpasswd;
   #  }
    # deny access to .htaccess files, if Apache's document root
    # concurs with nginx's one
    #
    location ~ /\.ht {
    deny  all;
     }  
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ {
   expires 1y;
   log_not_found off;
}
}
ifconfig
Code:
eth0      Link encap:Ethernet  HWaddr 00:25:90:52:BD:56
          inet addr:85.195.XX.122  Bcast:85.195.99.123  Mask:255.255.255.252
          inet6 addr: fe80::225:90ff:fe52:bd56/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2132309 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1828476 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:994608668 (948.5 MiB)  TX bytes:1018205380 (971.0 MiB)
          Interrupt:16 Memory:fba00000-fba20000

eth1      Link encap:Ethernet  HWaddr 00:25:90:52:BD:57
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:17 Memory:fb900000-fb920000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:1760329 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1760329 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:983519406 (937.9 MiB)  TX bytes:983519406 (937.9 MiB)

}
Reply With Quote
  #13  
Old 2nd August 2012, 13:31
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,740 Times in 2,575 Posts
Default

Can you comment out the

Code:
upstream php {
server 85.XX.XX.122:9000;
}
part and try again?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #14  
Old 2nd August 2012, 22:09
poolet poolet is offline
Junior Member
 
Join Date: Jun 2012
Posts: 15
Thanks: 1
Thanked 2 Times in 1 Post
 
Default

Quote:
Originally Posted by falko View Post
Can you comment out the

Code:
upstream php {
server 85.XX.XX.122:9000;
}
part and try again?
Nothing change, That's weird, when I am trying to reach http://www.domain.com:8080 I get bad request from nginx since, I according to the tutorial that you mentioned we can configure either http or https on ispconfig and I edited the file to works with https, so all I need to point is that ispconfig is working since am getting bad request because nginx send request to ispcong file and that's respond!!!

Last edited by poolet; 2nd August 2012 at 22:09. Reason: fixed
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3.0.3.3 fresh instalation - email tab is empty artur_gib Installation/Configuration 14 28th January 2014 19:02
Version 1.3 of the ISPConfig 3 Manual is finally available! falko General 44 2nd December 2011 12:04
Ftp problems timeout reny2000 General 6 23rd December 2009 11:09
ISPConfig 3.0.0.7 Beta released till General 78 24th December 2008 11:47
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 15:16


All times are GMT +2. The time now is 06:25.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.