Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9054095
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T13:35:44+00:00 2026-06-16T13:35:44+00:00

I am having trouble deploying a Catalyst application using nginx and fastcgi. I attempting

  • 0

I am having trouble deploying a Catalyst application using nginx and
fastcgi. I attempting to do this under ubuntu 12.04.

I have successfully configured nginx to serve static content from my
app’s /root subdirectory. However, when I try to any of my dynamic
urls, I get a 404 error in my application’s error log saying the
(unmapped) url is not found, which leads me to believe that nginx is
attempting to serve the request akin to a static page instead of
sending it to my Catalyst app.

To restate, hitting ‘localhost:3001/root/static.html’ results in the
static content being successfully displayed in the browser, but
hitting ‘localhost:30001/expense/editor’ results the following error:

"GET /expense/editor HTTP/1.1" 404

(where ‘/expense/editor’ is a path in my app, one that I can
successfully access when running the built-in Catalyst development
server).

I am launching the Catalyst app as:

> perl script/budgetweb_fastcgi.pl -l localhost:3003

I also tried running /etc/init.d/fcgiwarp. I am unclear if I need to run a
separate fastcgi wrapper, or if the perl script above is my fastcgi
wrapper. I edited fcgiwrap to use TCP sockets (127.0.0.1:3003), which
then prevented me from running both /etc/init.d/fcgiwrap and
script/budgetweb_fastcgi.pl at the same time, since they both use the
same socket. So I’m guessing I’m only supposed to use the Catalyst
script? Also, when running fcgiwrap, I get 502 “bad gateway” errors
when attempting to access static content.

Any help, or pointers to help, will be much appreciated. So far I have looked at the following pages (among others; StackOverflow will only allow me to post two links):

Catalyst wiki
HOWTO: Deploy a Catalyst application using FastCGI and nginx

Here is my nginx config file for the server:

server {
       listen       3001;
       server_name  budgetweb.com;
       root     /local/www/money/budgetweb;

       location /root {
           add_header Cache-control public;
       root /local/www/money/budgetweb/;
       }

       location / {
          access_log    /local/www/money/budgetweb/logs/access.log;
          error_log /local/www/money/budgetweb/logs/error.log;
          index  index.html index.htm index.pl;
      try_files $uri =404;
      gzip off;

      fastcgi_pass  localhost:3003;
          fastcgi_index index.pl;

          include /etc/nginx/fastcgi_params;
          fastcgi_param  SCRIPT_FILENAME  /local/www/money/budgetweb$fastcgi_script_name;
      fastcgi_param  SCRIPT_NAME /;
      fastcgi_param  PATH_INFO $fastcgi_script_name;
        } 

       # Disable gzip (it makes scripts feel slower since they have to complete
       # before getting gzipped)
       gzip off;

#       include         /etc/nginx/fcgiwrap.conf;
}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-16T13:35:48+00:00Added an answer on June 16, 2026 at 1:35 pm

    The fastcgi.pl script included with Catalyst is your FastCGI wrapper. All you should have to do is start that on a socket, then point your webserver to that socket and everything should pass through. The only thing you’ll want to do for a production system is create a start/stop script that will start and stop your application on startup and shutdown. The start command will look pretty much like what you ran above (you may want to add a ‘-d’ flag to daemonize it.)

    On your webserver configuration, configuring ‘/’ to point to your application should be fine. You might try removing the ‘index’, ‘try_files’, and ‘fastcgi_index’ configuration lines, that might be causing nginx to try and statically serve the content instead of passing the request to your application.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm having trouble deploying an ASP.Net application using Sql Server CE 4.0. I get
I am having trouble deploying a Silverlight5 application. I'm releasing to a Windows server
I'm having trouble deploying .NET application which uses Microsoft Access automation. I've installed the
I am having trouble deploying express app on nodester. After successfully running the default
I'm having some serious trouble properly deploying Web Application Bundle (OSGi-fied WAR) on GlassFish
I'm having trouble deploying QuickTime references using ClickOnce in VS2010. The app runs just
I have been having trouble deploying liferay portlets and themes from the command line
I am having trouble deploying a JApplet using netbeans into a working web server.
I have a site with SQL Server database and I am having trouble deploying
I am having some trouble deploying my MVC3 application to my localhost. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.