Stumped with issue of Nginx passing requests to php-fpm while using SSL
Steve Holdoway
steve at greengecko.co.nz
Thu Sep 26 22:45:34 UTC 2013
OK, the problem is that you're listening on *http* on port 443. You need
to use
listen 443 ssl [default];
for ssl.
As an aside, you can combine the http: and https: configs, using the two
listen statements, and dropping the 'ssl on' in a single block. Makes
admin simpler... havn't checked but the two look pretty similar.
hth,
Steve
On Thu, 2013-09-26 at 22:34 +0000, Eric Tyrer wrote:
> Problem i have is that after attempting to login to wordpress over SSL
> php is not being processed/executed.
>
>
> I've got a Wordpress 3.5 multi-site using subdirectories.
>
>
> nginx version: nginx/1.4.2
>
>
> built by gcc 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC)
>
>
> TLS SNI support enabled
> configure arguments: --prefix=/etc/nginx --sbin-path=/usr/sbin/nginx
> --conf-path=/etc/nginx/nginx.conf
> --error-log-path=/var/log/nginx/error.log
> --http-log-path=/var/log/nginx/access.log
> --pid-path=/var/run/nginx.pid --lock-path=/var/run/nginx.lock
> --http-client-body-temp-path=/var/cache/nginx/client_temp
> --http-proxy-temp-path=/var/cache/nginx/proxy_temp
> --http-fastcgi-temp-path=/var/cache/nginx/fastcgi_temp
> --http-uwsgi-temp-path=/var/cache/nginx/uwsgi_temp
> --http-scgi-temp-path=/var/cache/nginx/scgi_temp --user=nginx
> --group=nginx --with-http_ssl_module --with-http_realip_module
> --with-http_addition_module --with-http_sub_module
> --with-http_dav_module --with-http_flv_module --with-http_mp4_module
> --with-http_gunzip_module --with-http_gzip_static_module
> --with-http_random_index_module --with-http_secure_link_module
> --with-http_stub_status_module --with-mail --with-mail_ssl_module
> --with-file-aio --with-ipv6 --with-cc-opt='-O2 -g -pipe
> -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector
> --param=ssp-buffer-size=4 -m64 -mtune=generic'
>
>
> PHP 5.3.27 (fpm-fcgi) (built: Jul 12 2013 10:10:59)
>
>
> nginx handles requests fine through port 80 images, css, etc are
> processed normally. however, logging into to a blog results in no php
> being processed like ….
>
>
> > <?php
> > /**
> > * Front to the WordPress application. This file doesn't do anything, but loads
> > * wp-blog-header.php which does and tells WordPress to load the theme.
> > *
> > * @package WordPress
> > */
> >
> > /**
> > * Tells WordPress to load the WordPress theme and output it.
> > *
> > * @var bool
> > */
> > define('WP_USE_THEMES', true);
> >
> > /** Loads the WordPress Environment and Template */
> > require('./wp-blog-header.php');
>
>
> my host.conf is here http://pastie.org/private/lmr05yxem5psyemzbwukig
>
>
> and my nginx conf is
> here http://pastie.org/private/9gwjgvslwspg17frbus3g
>
>
>
>
> i am at my wits end trying to figure it out by myself.. It would be
> great if another pair of eyes could look this over
>
> ---------
> Eric S. Tyrer II
> Associate Director – Web Systems
>
> York College - The City University of New York
> http://www.york.cuny.edu
> 94-20 Guy R. Brewer Blvd.
> Academic Core - STE 1H14
> Jamaica, NY 11451
>
> http://www.york.cuny.edu/etyrer
> etyrer at york.cuny.edu
>
> (P) 718-262-2466
> (C) 347-393-6507
>
> I have no special talent. I am only passionately curious. - Albert
> Einstein
>
>
>
>
>
>
> _______________________________________________
> nginx mailing list
> nginx at nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx
--
Steve Holdoway BSc(Hons) MIITP
http://www.greengecko.co.nz
Linkedin: http://www.linkedin.com/in/steveholdoway
Skype: sholdowa
More information about the nginx
mailing list