Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to deploy my Wt application with Apache and FastCGI. Here's my config file:

<IfModule mod_fcgid.c>
    NameVirtualHost *:9091
    <VirtualHost *:9091>
        DocumentRoot /var/www/wt_test/docroot/
        AddHandler fcgid-script wt
        DirectoryIndex wt_test.wt
        <Directory /var/www/wt_test/docroot>
            Order Deny,Allow
            Allow from all
            Options +ExecCGI -Indexes
        FcgidInitialEnv WT_APP_ROOT /var/www/wt_test/approot/

When I open localhost:9091 I can see my web page, everything works.

Now I want to have a simple index.html file in my server root, and all of my Wt stuff at another location, say localhost:9091/wt

Ideally I would like to have all these things running on port 80. I already have some simple html pages and I want to create a separate location where I can place my Wt application.

How can I do it?

share|improve this question

You can put the Wt stuff one directory higher than your docroot. Setup an Apache directory reference similar to how you had /var/www/wt_test/docroot in your example. Just use var/www/wt_test/wtpgms or similar. Then use the scriptalias directive to map it into your website url hierarchy. FastCGI Wt seems to assume that docroot is the directory that your program exists in though. You will need to take that into account.

share|improve this answer
I don't understand you clearly. Could you provide an example config? – hank Nov 6 '13 at 6:34

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.