alreece45 / docker-images

Various docker images
5 stars 2 forks source link

Issue with phusion-nginx-php query string not being set #1

Open ghostbar opened 10 years ago

ghostbar commented 10 years ago

Hello,

I'm using your phusion-nginx-php and when sending a request like this:

/healthcheck/request?key=blahblahblah

And when I go to the PHP and put:

error_log( var_dump($app->request() ));
    die();

I get that the PATH_INFO doesn't have the ? and because of that the QUERY_STRING is empty:

["PATH_INFO"]=>
      string(54) "/healthcheck/requestkey=blahblahblah"
["QUERY_STRING"]=>
      string(0) ""

On the nginx log is being sent with the ?. Is there any config I should look at or workaround to getting this working?

The Dockerfile I put together looks like this:

FROM alreece45/phusion-nginx-php
ENV FRONT_CONTROLLER index.php
ENV DOCROOT /opt/php-app
ENV APPLICATION_ENV development
RUN apt-get update && apt-get install -y -q mysql-client php5-mysql php5-intl php5-curl php5-gd php5-mcrypt php-pear php5-dev gcc make
RUN pecl install mongo
RUN touch /etc/php5/fpm/conf.d/20-mongo.ini
RUN echo "extension=mongo.so" | tee /etc/php5/fpm/conf.d/20-mongo.ini
ghostbar commented 10 years ago

Was my bad, removing FRONT_CONTROLLER from the Dockerfile fixed the issue

alreece45 commented 10 years ago

That may have fixed it, but it probably shouldn't be doing that.

ghostbar commented 10 years ago

I would suggest to label it as "has-workaround" then just so it's easy for people to identify it.