nginx

Torenware's picture

Redirecting IE9 compatibly with nginx when behind a load balancer

I'm having a nightmarish problem getting IE 9 to redirect from http to https. I've looked at a discussion from about a year ago (http://groups.drupal.org/node/206813), but in that case, nginx is in complete control.

In my case, I'm in AWS, and https is actually getting handled by an elastic load balancer (ELB), which is proxying over to nginx over port 80, and setting http_x_forwarded_proto:

<

pre>
#x_forwarded_proto stuff for elb/https issues - see http://daniel.hahler.de/handle-x-forwarded-proto-in-backend-nginx
set $my_https "off";

Read more
DaveT's picture

Drupal Developer | NJI Media

Employment type: 
Full time
Telecommute: 
Not allowed

We seek a versatile PHP web developer with demonstrable experience. A candidate who enjoys a broad range of both frontend and backend development responsibilities would be preferred. The ideal candidate is able to quickly, independently, and precisely build a Drupal web site from design assets and functional documentation. Experienced developers new to Drupal, or passionate entry level developers should also apply.

Read more
RedRat's picture

Which PHP files of core and modules must be accessible from browser?

First of all, excuse my English. I hope you can understand what I want to ask.

For a long time I have used this NginX config as a template for mine own, but I am very unsatisfied with it's security concerning PHP files. I mean, there are only some PHP files which a really needed for Drupal to work: index.php, update.php and cron.php (install.php used only once and I don't use any features of xmlrpc.php). So I want to rewrite my NginX config to grant access only for enlisted PHP files.

Read more
scottm316's picture

clean URLs on nginx

Hi.
I posted a nginx question with some configs in the drupal.org post-installation forum. Would anybody have a few minutes to review the config I posted and tell me if they see anything blatently wrong? I simply cannot get clean URLs to work. The config I'm adapting is the boost one, and to note may be that the last commit to that repo was over 3 years ago so maybe there's something new?

Read more
DutGRIFF33's picture

Nginx config can not get the rewrite right on EC2. Message "The requested page "/" could not be found."

I have been working on this for a few days now and I can not get it to work. I am having the same error after every install on my amazon EC2. I have done the exact steps as on my local machine and it will not work for me on my EC2 server. I am getting to the end of the installation right after it asks for the databases info and it goes to a page saying "Page not found. The requested page "/" could not be found." this is being displayed in the Drupal default theme so it is working. If you are reading this before I get it fixed check out dutgriff.com to see what it is displaying.

Read more
likewhoa's picture

NGINX microcaching producing high FBT times.

I have a site setup were I am benchmarking boost with nginx vs nginx with microcaching and it shows that using microcaching produces a First Byte Time of around 0.984s while nginx+boost without microcaching produces 0.257s.

I know that microcaching should be producing better or similar numbers but in my case it's the appositive.

I like to get to the bottom of this odd issue.

P.S I am using perusio's d6 branch

bureq's picture

Microcache will offer a WSOD after a while

I'm serving cached version to all anonymous users. I'm kind of using it as a lazy man's varnish drop-in, it works great except it will offer a nice WSOD from time to time, and exclusively for the website.com front page.
I don't know why or when, but it looks like it depends on how busy the site is. The more anon users on the site, the faster the frontpage will wsod.

I've not found any errors in nginx or php logs, http response is 200.
Where in microcache configuration should I start looking?
I'm using Perusio's nginx config, nginx/1.2.5, pressflow6

fastcgi_microcache_zone.conf

Read more
fully_stoned's picture

wildcard setup for subdirectories

I am not sure if we'd pursue with multisite installation, but at the moment we have one site which supports multiple language like:
example.com/en
example.com/es

There seems to be a translation bug/error while using this setup, so, we are thinking about using it as subdomain (might be multisite) like:
en.example.com
es.example.com

But again, we'd also have some other feature not directly related with main site (only the user information) like:
blog.example.com
community.example.com

Read more
EDanee's picture

Nginx and boost with older config

hi folks,

A while back I altered perusio's config a bit for my server.
I'm running multiple domains - not all drupal.

I have to be honest I didn't follow the updates on github after I set up my config.
And this seems to come back and haunt me :)

Read more
emjayess's picture

Running tests... expected fails

We're using @perusio's drupal-with-nginx as our baseline configuration, and have an initiative to beef up our testing and test automation infra. Running tests from some or all of the test suite produces a healthy number of fails... many/most of which are to be expected, given the configuration.

Read more
Subscribe with RSS Syndicate content