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
  #1  
Old 28th February 2013, 11:10
nackgr nackgr is offline
Member
 
Join Date: Nov 2012
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
Default Problem after latest upgrade nginx: [emerg] unknown "https"

Hello after latest update i get that error!


nginx: [emerg] unknown "https" variable nginx: configuration file /etc/nginx/nginx.conf test failed
Reply With Quote
Sponsored Links
  #2  
Old 28th February 2013, 11:34
nackgr nackgr is offline
Member
 
Join Date: Nov 2012
Posts: 31
Thanks: 4
Thanked 0 Times in 0 Posts
Default

solved by remove

from
/etc/nginx/sites-available/apps.vhost
/etc/nginx/sites-enabled/000-apps.vhost

the lines

# fastcgi_param HTTPS $server_https;
Reply With Quote
  #3  
Old 1st March 2013, 14:29
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,739 Times in 2,574 Posts
Default

Did you use a custom template? We don't use $server_https in the default templates.
__________________
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
  #4  
Old 9th March 2013, 12:38
Rockdrala Rockdrala is offline
Senior Member
 
Join Date: Dec 2007
Posts: 140
Thanks: 7
Thanked 2 Times in 2 Posts
Default

I used i686 noarch on centos 6.3. Would that cause this? Also troubleshooting same error.

Actually my apps.vhost looked different.
Code:
[root@node1 sites-available]# vi apps.vhost
               fastcgi_param   CONTENT_LENGTH          $content_length;

               fastcgi_param   SCRIPT_FILENAME         $request_filename;
               fastcgi_param   SCRIPT_NAME             $fastcgi_script_name;
               fastcgi_param   REQUEST_URI             $request_uri;
               fastcgi_param   DOCUMENT_URI            $document_uri;
               fastcgi_param   DOCUMENT_ROOT           $document_root;
               fastcgi_param   SERVER_PROTOCOL         $server_protocol;

               fastcgi_param   GATEWAY_INTERFACE       CGI/1.1;
               fastcgi_param   SERVER_SOFTWARE         nginx/$nginx_version;

               fastcgi_param   REMOTE_ADDR             $remote_addr;
               fastcgi_param   REMOTE_PORT             $remote_port;
               fastcgi_param   SERVER_ADDR             $server_addr;
               fastcgi_param   SERVER_PORT             $server_port;
               fastcgi_param   SERVER_NAME             $server_name;

               fastcgi_param   HTTPS                   $https;
should I remove
Code:
 fastcgi_param   HTTPS                   $https;

Last edited by Rockdrala; 9th March 2013 at 12:44.
Reply With Quote
  #5  
Old 9th March 2013, 13:04
Rockdrala Rockdrala is offline
Senior Member
 
Join Date: Dec 2007
Posts: 140
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Its actually posted in my apps.vhost like 4 times.



Would commenting them out fix my server refused connection error for the ispconfig panel?

Last edited by Rockdrala; 9th March 2013 at 13:07.
Reply With Quote
  #6  
Old 9th March 2013, 13:17
Rockdrala Rockdrala is offline
Senior Member
 
Join Date: Dec 2007
Posts: 140
Thanks: 7
Thanked 2 Times in 2 Posts
Default netstat tap

Code:
There are no updates available for ISPConfig 3.0.5.1
[root@node1 sites-available]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                                                             e       PID/Program name
tcp        0      0 *:amqp                      *:*                         LIST                                                                             EN      2048/qpidd
tcp        0      0 localhost:cslistener        *:*                         LIST                                                                             EN      1949/php-fpm
tcp        0      0 localhost:10024             *:*                         LIST                                                                             EN      1787/amavisd (maste
tcp        0      0 *:408                     *:*                         LIST                                                                             EN      1494/sshd
tcp        0      0 localhost:10025             *:*                         LIST                                                                             EN      1894/master
tcp        0      0 *:mysql                     *:*                         LIST                                                                             EN      1725/mysqld
tcp        0      0 *:sunrpc                    *:*                         LIST                                                                             EN      1262/rpcbind
tcp        0      0 localhost:9012              *:*                         LIST                                                                             EN      1949/php-fpm
tcp        0      0 *:ftp                       *:*                         LIST                                                                             EN      2037/pure-ftpd (SER
tcp        0      0 localhost:9013              *:*                         LIST                                                                             EN      1949/php-fpm
tcp        0      0 *:50869                     *:*                         LIST                                                                             EN      1281/rpc.statd
tcp        0      0 192.168.1.101:domain        *:*                         LIST                                                                             EN      1242/named
tcp        0      0 localhost:domain            *:*                         LIST                                                                             EN      1242/named
tcp        0      0 localhost:ipp               *:*                         LIST                                                                             EN      1375/cupsd
tcp        0      0 *:smtp                      *:*                         LIST                                                                             EN      1894/master
tcp        0      0 localhost:rndc              *:*                         LIST                                                                             EN      1242/named
tcp        0      0 localhost:mysql             localhost:37016             ESTA                                                                             BLISHED 1725/mysqld
tcp        0   1252 192.168.1.11:4028         Kim-blahblah:60161 ESTA                                                                             BLISHED 2384/sshd
tcp       67      0 localhost:47764             localhost:10025             CLOS                                                                             E_WAIT  1946/amavisd (ch1-a
tcp        0      0 localhost:37216             localhost:mysql             ESTA                                                                             BLISHED 1946/amavisd (ch1-a
tcp        0      0 *:amqp                      *:*                         LIST                                                                             EN      2048/qpidd
tcp        0      0 *:408                     *:*                         LIST                                                                             EN      1494/sshd
tcp        0      0 *:pop3                      *:*                         LIST                                                                             EN      1813/couriertcpd
tcp        0      0 *:imap                      *:*                         LIST                                                                             EN      1800/couriertcpd
tcp        0      0 *:sunrpc                    *:*                         LIST                                                                             EN      1262/rpcbind
tcp        0      0 *:55540                     *:*                         LIST                                                                             EN      1281/rpc.statd
tcp        0      0 *:ftp                       *:*                         LIST                                                                             EN      2037/pure-ftpd (SER
tcp        0      0 *:domain                    *:*                         LIST                                                                             EN      1242/named
tcp        0      0 localhost:ipp               *:*                         LIST                                                                             EN      1375/cupsd
tcp        0      0 *:smtp                      *:*                         LIST                                                                             EN      1894/master
tcp        0      0 localhost:rndc              *:*                         LIST                                                                             EN      1242/named
tcp        0      0 *:imaps                     *:*                         LIST                                                                             EN      1807/couriertcpd
tcp        0      0 *:pop3s                     *:*                         LIST
Reply With Quote
  #7  
Old 9th March 2013, 13:22
Rockdrala Rockdrala is offline
Senior Member
 
Join Date: Dec 2007
Posts: 140
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Code:
[root@node1 sites-available]# /etc/init.d/nginx reload
[root@node1 sites-available]# /etc/init.d/nginx start
Starting nginx: nginx: [emerg] unknown "https" variable
                                                           [FAILED]
Bleh
Reply With Quote
  #8  
Old 9th March 2013, 13:27
Rockdrala Rockdrala is offline
Senior Member
 
Join Date: Dec 2007
Posts: 140
Thanks: 7
Thanked 2 Times in 2 Posts
Default

Commented out all four lines in apps.vhost ( I dont have a 000-apps.vhost)

Now getting

Code:
Starting nginx: nginx: [warn] conflicting server name "_" on 0.0.0.0:80, ignored
                                                           [  OK  ]
Reply With Quote
  #9  
Old 9th March 2013, 13:30
Rockdrala Rockdrala is offline
Senior Member
 
Join Date: Dec 2007
Posts: 140
Thanks: 7
Thanked 2 Times in 2 Posts
Default

All sites are back up, control panel back up. Why did I have to comment these out? Isn't NGINX suppose to handle the https request?


I fixed it but im confooooooooooooooooooooosed (^_^)

btw good to be back on here

<3
Also

I'm seeing people post that they have 000-apps.vhost, 000-ispconfig.conf, 900-example1.com.vhost, 900-example2.com.vhost, 900-example3.com.vhost in their sites available file.

I don't have numbers appended in front of my sites. Is this going to be a problem for my configuration?

Last edited by Rockdrala; 9th March 2013 at 14:02. Reason: added info
Reply With Quote
  #10  
Old 9th March 2013, 23:54
Rockdrala Rockdrala is offline
Senior Member
 
Join Date: Dec 2007
Posts: 140
Thanks: 7
Thanked 2 Times in 2 Posts
 
Default

problem after reboot.

Something uncommented the four $https lines I commented after reboot. I need to know if this file(apps.vhost) is generated by something upon reboot because it crashed my nginx again. I can really use some insight on this here falko/timme.


it caused the same net connection refused until I commented back out the fast cgi https lines again. What generates this file so I can set it to not regenerate an uncommented line again.
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
Sending mails: fine > recive: bad Moundy General 1 19th June 2012 23:40
Newly Installed ISPConfig3 on Ubuntu 8.04 : login redirect fail ? cripperz Installation/Configuration 5 22nd March 2009 12:15
ISP Config hesitation when opening web pages frankb Installation/Configuration 7 15th December 2008 13:06
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 13:29
php script injections Grizzly General 21 18th July 2006 08:55


All times are GMT +2. The time now is 12:46.


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