Laravel in subdirectory - Nginx and fastcgi configBlank Page: wordpress on nginx+php-fpmNginx subversion...

Type int? vs type int

How to safely derail a train during transit?

How do we know the LHC results are robust?

How does it work when somebody invests in my business?

Balance Issues for a Custom Sorcerer Variant

Avoiding estate tax by giving multiple gifts

Is the destination of a commercial flight important for the pilot?

How do I find the solutions of the following equation?

Term for the "extreme-extension" version of a straw man fallacy?

How do scammers retract money, while you can’t?

How can we prove that any integral in the set of non-elementary integrals cannot be expressed in the form of elementary functions?

Closest Prime Number

Why not increase contact surface when reentering the atmosphere?

Was Spock the First Vulcan in Starfleet?

A particular customize with green line and letters for subfloat

How did Doctor Strange see the winning outcome in Avengers: Infinity War?

How do I extract a value from a time formatted value in excel?

Is there a problem with hiding "forgot password" until it's needed?

Crossing the line between justified force and brutality

Trouble understanding the speech of overseas colleagues

How to check is there any negative term in a large list?

Would a high gravity rocky planet be guaranteed to have an atmosphere?

System.debug(JSON.Serialize(o)) Not longer shows full string

Is there a good way to store credentials outside of a password manager?



Laravel in subdirectory - Nginx and fastcgi config


Blank Page: wordpress on nginx+php-fpmNginx subversion commit failurenginx php5-fpm path_info urls and root locationPHP app breaks on Nginx, but works on ApacheNGINX don't parse .php5 as .phpLaravel 4.1 on nginx routes error 404nginx rewrite throw 404 with last and breakCodeIgniter nginx rewrite rules for i8ln URL'sHow to configure nginx to serve one site from two different document root and using different php depending on URLlimit_req_zone for the whole PHP













1















I'm trying to set up various facilities laravel applications on my nginx server hhvm, but after much research and many attempts could not succeed.



Could someone help me with this? Here is my current setup:



server {
listen 80;
server_name 178.13.1.230;
root /home/callcenter/public_html/gateway;

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

location /crm {
root /home/callcenter/public_html/gateway/crm/public;
#rewrite ^/crm/(.*)$ /$1 break;
index index.php index.html;
try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
}

location ~ /crm/.+.php$ {
root /home/callcenter/public_html/gateway/crm/public;
#rewrite ^/crm/(.*)$ /$1 break;
include /etc/nginx/fastcgi.conf;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

fastcgi_index index.php;
include /etc/nginx/hhvm;
#fastcgi_pass unix:/var/run/hhvm/hhvm.sock;

}

}


EDIT



Excuse my lack of attention, really did not let explained the problem right.



The server is reacting as if I was trying to make a "direct download" a file when I access 178.13.1.230/crm



What I need is that I can set up multiple laravel applications on the same server, accessing them in urls like:



http://178.13.1.230/app1



http://178.13.1.230/app2



The fastcgi line is commented, is being replaced by the hhvm.conf include.



Thank you for your help!



Below is a copy of the files that are on include:



/etc/nginx/hhvm.conf



location ~ .(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}


location ~ /crm/.+.(hh|php)$ {
fastcgi_keep_conn on;
fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}


/etc/nginx/fastcgi.conf



fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
fastcgi_param REQUEST_METHOD $request_method;
fastcgi_param CONTENT_TYPE $content_type;
fastcgi_param CONTENT_LENGTH $content_length;

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 HTTPS $https if_not_empty;

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;

# PHP only, required if PHP was built with --enable-force-cgi-redirect
fastcgi_param REDIRECT_STATUS 200;









share|improve this question
















bumped to the homepage by Community 21 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    1















    I'm trying to set up various facilities laravel applications on my nginx server hhvm, but after much research and many attempts could not succeed.



    Could someone help me with this? Here is my current setup:



    server {
    listen 80;
    server_name 178.13.1.230;
    root /home/callcenter/public_html/gateway;

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

    location /crm {
    root /home/callcenter/public_html/gateway/crm/public;
    #rewrite ^/crm/(.*)$ /$1 break;
    index index.php index.html;
    try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
    }

    location ~ /crm/.+.php$ {
    root /home/callcenter/public_html/gateway/crm/public;
    #rewrite ^/crm/(.*)$ /$1 break;
    include /etc/nginx/fastcgi.conf;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

    fastcgi_index index.php;
    include /etc/nginx/hhvm;
    #fastcgi_pass unix:/var/run/hhvm/hhvm.sock;

    }

    }


    EDIT



    Excuse my lack of attention, really did not let explained the problem right.



    The server is reacting as if I was trying to make a "direct download" a file when I access 178.13.1.230/crm



    What I need is that I can set up multiple laravel applications on the same server, accessing them in urls like:



    http://178.13.1.230/app1



    http://178.13.1.230/app2



    The fastcgi line is commented, is being replaced by the hhvm.conf include.



    Thank you for your help!



    Below is a copy of the files that are on include:



    /etc/nginx/hhvm.conf



    location ~ .(hh|php)$ {
    fastcgi_keep_conn on;
    fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    }


    location ~ /crm/.+.(hh|php)$ {
    fastcgi_keep_conn on;
    fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
    fastcgi_index index.php;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    include fastcgi_params;
    }


    /etc/nginx/fastcgi.conf



    fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
    fastcgi_param QUERY_STRING $query_string;
    fastcgi_param REQUEST_METHOD $request_method;
    fastcgi_param CONTENT_TYPE $content_type;
    fastcgi_param CONTENT_LENGTH $content_length;

    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 HTTPS $https if_not_empty;

    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;

    # PHP only, required if PHP was built with --enable-force-cgi-redirect
    fastcgi_param REDIRECT_STATUS 200;









    share|improve this question
















    bumped to the homepage by Community 21 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      1












      1








      1








      I'm trying to set up various facilities laravel applications on my nginx server hhvm, but after much research and many attempts could not succeed.



      Could someone help me with this? Here is my current setup:



      server {
      listen 80;
      server_name 178.13.1.230;
      root /home/callcenter/public_html/gateway;

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

      location /crm {
      root /home/callcenter/public_html/gateway/crm/public;
      #rewrite ^/crm/(.*)$ /$1 break;
      index index.php index.html;
      try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
      }

      location ~ /crm/.+.php$ {
      root /home/callcenter/public_html/gateway/crm/public;
      #rewrite ^/crm/(.*)$ /$1 break;
      include /etc/nginx/fastcgi.conf;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

      fastcgi_index index.php;
      include /etc/nginx/hhvm;
      #fastcgi_pass unix:/var/run/hhvm/hhvm.sock;

      }

      }


      EDIT



      Excuse my lack of attention, really did not let explained the problem right.



      The server is reacting as if I was trying to make a "direct download" a file when I access 178.13.1.230/crm



      What I need is that I can set up multiple laravel applications on the same server, accessing them in urls like:



      http://178.13.1.230/app1



      http://178.13.1.230/app2



      The fastcgi line is commented, is being replaced by the hhvm.conf include.



      Thank you for your help!



      Below is a copy of the files that are on include:



      /etc/nginx/hhvm.conf



      location ~ .(hh|php)$ {
      fastcgi_keep_conn on;
      fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
      }


      location ~ /crm/.+.(hh|php)$ {
      fastcgi_keep_conn on;
      fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
      }


      /etc/nginx/fastcgi.conf



      fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;

      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 HTTPS $https if_not_empty;

      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;

      # PHP only, required if PHP was built with --enable-force-cgi-redirect
      fastcgi_param REDIRECT_STATUS 200;









      share|improve this question
















      I'm trying to set up various facilities laravel applications on my nginx server hhvm, but after much research and many attempts could not succeed.



      Could someone help me with this? Here is my current setup:



      server {
      listen 80;
      server_name 178.13.1.230;
      root /home/callcenter/public_html/gateway;

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

      location /crm {
      root /home/callcenter/public_html/gateway/crm/public;
      #rewrite ^/crm/(.*)$ /$1 break;
      index index.php index.html;
      try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
      }

      location ~ /crm/.+.php$ {
      root /home/callcenter/public_html/gateway/crm/public;
      #rewrite ^/crm/(.*)$ /$1 break;
      include /etc/nginx/fastcgi.conf;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

      fastcgi_index index.php;
      include /etc/nginx/hhvm;
      #fastcgi_pass unix:/var/run/hhvm/hhvm.sock;

      }

      }


      EDIT



      Excuse my lack of attention, really did not let explained the problem right.



      The server is reacting as if I was trying to make a "direct download" a file when I access 178.13.1.230/crm



      What I need is that I can set up multiple laravel applications on the same server, accessing them in urls like:



      http://178.13.1.230/app1



      http://178.13.1.230/app2



      The fastcgi line is commented, is being replaced by the hhvm.conf include.



      Thank you for your help!



      Below is a copy of the files that are on include:



      /etc/nginx/hhvm.conf



      location ~ .(hh|php)$ {
      fastcgi_keep_conn on;
      fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
      }


      location ~ /crm/.+.(hh|php)$ {
      fastcgi_keep_conn on;
      fastcgi_pass unix:/var/run/hhvm/hhvm.sock;
      fastcgi_index index.php;
      fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
      include fastcgi_params;
      }


      /etc/nginx/fastcgi.conf



      fastcgi_param  SCRIPT_FILENAME    $document_root$fastcgi_script_name;
      fastcgi_param QUERY_STRING $query_string;
      fastcgi_param REQUEST_METHOD $request_method;
      fastcgi_param CONTENT_TYPE $content_type;
      fastcgi_param CONTENT_LENGTH $content_length;

      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 HTTPS $https if_not_empty;

      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;

      # PHP only, required if PHP was built with --enable-force-cgi-redirect
      fastcgi_param REDIRECT_STATUS 200;






      nginx web-server ubuntu-14.04 hhvm






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 3 '16 at 17:36







      Diego Goulart

















      asked Mar 3 '16 at 14:46









      Diego GoulartDiego Goulart

      63




      63





      bumped to the homepage by Community 21 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 21 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes


















          0














          There is not much information in your question (about what doesn't "work" exactly: what would you expect and doesn't happen? Also, two files are included and you don't show their content).



          Anyway, I wouldn't expect this configuration to work (at least not the php files) since you're not passing anything to php-fpm (or hhvm), the matching line is commented out.



          Now I wouldn't expect this configuration to work because you show /etc/nginx/hhvm.conf but include /etc/nginx/hhvm (is it a typo?).



          Also, you use /etc/nginx/fastcgi.conf but /etc/nginx/hhvm.conf includes a fastcgi_params file. This looks complicated, but maybe it's intentional? Do you have a fastcgi_params file that defines correct parameters?



          Finally, I would include the hhvm.conf in the server block, not inside a location block.



          So I would try this:



          server {
          listen 80;
          server_name 178.13.1.230;
          root /home/callcenter/public_html/gateway;

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

          location /crm {
          root /home/callcenter/public_html/gateway/crm/public;
          index index.php index.html;
          try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
          }

          include /etc/nginx/hhvm.conf;

          }

          }


          But if you have no fastcgi_params file, it won't work. (I'd probably use only one fastcgi_params file: rename fastcgi.conf in fastcgi_params or vice-versa).



          I guess you made sure hhvm is running, listening on the socket you've defined, and is running fine.






          share|improve this answer


























          • Excuse my lack of attention, really did not let explained the problem right.

            – Diego Goulart
            Mar 3 '16 at 17:14











          • I edited my answer to reflect your changes. Hope this will help, don't hesitate to give feedback.

            – zezollo
            Mar 4 '16 at 9:03











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "2"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f761336%2flaravel-in-subdirectory-nginx-and-fastcgi-config%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          There is not much information in your question (about what doesn't "work" exactly: what would you expect and doesn't happen? Also, two files are included and you don't show their content).



          Anyway, I wouldn't expect this configuration to work (at least not the php files) since you're not passing anything to php-fpm (or hhvm), the matching line is commented out.



          Now I wouldn't expect this configuration to work because you show /etc/nginx/hhvm.conf but include /etc/nginx/hhvm (is it a typo?).



          Also, you use /etc/nginx/fastcgi.conf but /etc/nginx/hhvm.conf includes a fastcgi_params file. This looks complicated, but maybe it's intentional? Do you have a fastcgi_params file that defines correct parameters?



          Finally, I would include the hhvm.conf in the server block, not inside a location block.



          So I would try this:



          server {
          listen 80;
          server_name 178.13.1.230;
          root /home/callcenter/public_html/gateway;

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

          location /crm {
          root /home/callcenter/public_html/gateway/crm/public;
          index index.php index.html;
          try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
          }

          include /etc/nginx/hhvm.conf;

          }

          }


          But if you have no fastcgi_params file, it won't work. (I'd probably use only one fastcgi_params file: rename fastcgi.conf in fastcgi_params or vice-versa).



          I guess you made sure hhvm is running, listening on the socket you've defined, and is running fine.






          share|improve this answer


























          • Excuse my lack of attention, really did not let explained the problem right.

            – Diego Goulart
            Mar 3 '16 at 17:14











          • I edited my answer to reflect your changes. Hope this will help, don't hesitate to give feedback.

            – zezollo
            Mar 4 '16 at 9:03
















          0














          There is not much information in your question (about what doesn't "work" exactly: what would you expect and doesn't happen? Also, two files are included and you don't show their content).



          Anyway, I wouldn't expect this configuration to work (at least not the php files) since you're not passing anything to php-fpm (or hhvm), the matching line is commented out.



          Now I wouldn't expect this configuration to work because you show /etc/nginx/hhvm.conf but include /etc/nginx/hhvm (is it a typo?).



          Also, you use /etc/nginx/fastcgi.conf but /etc/nginx/hhvm.conf includes a fastcgi_params file. This looks complicated, but maybe it's intentional? Do you have a fastcgi_params file that defines correct parameters?



          Finally, I would include the hhvm.conf in the server block, not inside a location block.



          So I would try this:



          server {
          listen 80;
          server_name 178.13.1.230;
          root /home/callcenter/public_html/gateway;

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

          location /crm {
          root /home/callcenter/public_html/gateway/crm/public;
          index index.php index.html;
          try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
          }

          include /etc/nginx/hhvm.conf;

          }

          }


          But if you have no fastcgi_params file, it won't work. (I'd probably use only one fastcgi_params file: rename fastcgi.conf in fastcgi_params or vice-versa).



          I guess you made sure hhvm is running, listening on the socket you've defined, and is running fine.






          share|improve this answer


























          • Excuse my lack of attention, really did not let explained the problem right.

            – Diego Goulart
            Mar 3 '16 at 17:14











          • I edited my answer to reflect your changes. Hope this will help, don't hesitate to give feedback.

            – zezollo
            Mar 4 '16 at 9:03














          0












          0








          0







          There is not much information in your question (about what doesn't "work" exactly: what would you expect and doesn't happen? Also, two files are included and you don't show their content).



          Anyway, I wouldn't expect this configuration to work (at least not the php files) since you're not passing anything to php-fpm (or hhvm), the matching line is commented out.



          Now I wouldn't expect this configuration to work because you show /etc/nginx/hhvm.conf but include /etc/nginx/hhvm (is it a typo?).



          Also, you use /etc/nginx/fastcgi.conf but /etc/nginx/hhvm.conf includes a fastcgi_params file. This looks complicated, but maybe it's intentional? Do you have a fastcgi_params file that defines correct parameters?



          Finally, I would include the hhvm.conf in the server block, not inside a location block.



          So I would try this:



          server {
          listen 80;
          server_name 178.13.1.230;
          root /home/callcenter/public_html/gateway;

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

          location /crm {
          root /home/callcenter/public_html/gateway/crm/public;
          index index.php index.html;
          try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
          }

          include /etc/nginx/hhvm.conf;

          }

          }


          But if you have no fastcgi_params file, it won't work. (I'd probably use only one fastcgi_params file: rename fastcgi.conf in fastcgi_params or vice-versa).



          I guess you made sure hhvm is running, listening on the socket you've defined, and is running fine.






          share|improve this answer















          There is not much information in your question (about what doesn't "work" exactly: what would you expect and doesn't happen? Also, two files are included and you don't show their content).



          Anyway, I wouldn't expect this configuration to work (at least not the php files) since you're not passing anything to php-fpm (or hhvm), the matching line is commented out.



          Now I wouldn't expect this configuration to work because you show /etc/nginx/hhvm.conf but include /etc/nginx/hhvm (is it a typo?).



          Also, you use /etc/nginx/fastcgi.conf but /etc/nginx/hhvm.conf includes a fastcgi_params file. This looks complicated, but maybe it's intentional? Do you have a fastcgi_params file that defines correct parameters?



          Finally, I would include the hhvm.conf in the server block, not inside a location block.



          So I would try this:



          server {
          listen 80;
          server_name 178.13.1.230;
          root /home/callcenter/public_html/gateway;

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

          location /crm {
          root /home/callcenter/public_html/gateway/crm/public;
          index index.php index.html;
          try_files $uri $uri/ /index.php$is_args$args /index.php?$query_string;
          }

          include /etc/nginx/hhvm.conf;

          }

          }


          But if you have no fastcgi_params file, it won't work. (I'd probably use only one fastcgi_params file: rename fastcgi.conf in fastcgi_params or vice-versa).



          I guess you made sure hhvm is running, listening on the socket you've defined, and is running fine.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Mar 4 '16 at 9:01

























          answered Mar 3 '16 at 15:49









          zezollozezollo

          22538




          22538













          • Excuse my lack of attention, really did not let explained the problem right.

            – Diego Goulart
            Mar 3 '16 at 17:14











          • I edited my answer to reflect your changes. Hope this will help, don't hesitate to give feedback.

            – zezollo
            Mar 4 '16 at 9:03



















          • Excuse my lack of attention, really did not let explained the problem right.

            – Diego Goulart
            Mar 3 '16 at 17:14











          • I edited my answer to reflect your changes. Hope this will help, don't hesitate to give feedback.

            – zezollo
            Mar 4 '16 at 9:03

















          Excuse my lack of attention, really did not let explained the problem right.

          – Diego Goulart
          Mar 3 '16 at 17:14





          Excuse my lack of attention, really did not let explained the problem right.

          – Diego Goulart
          Mar 3 '16 at 17:14













          I edited my answer to reflect your changes. Hope this will help, don't hesitate to give feedback.

          – zezollo
          Mar 4 '16 at 9:03





          I edited my answer to reflect your changes. Hope this will help, don't hesitate to give feedback.

          – zezollo
          Mar 4 '16 at 9:03


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Server Fault!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f761336%2flaravel-in-subdirectory-nginx-and-fastcgi-config%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          As a Security Precaution, the user account has been locked The Next CEO of Stack OverflowMS...

          Список ссавців Італії Природоохоронні статуси | Список |...

          Українські прізвища Зміст Історичні відомості |...