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 8895597
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:49:16+00:00 2026-06-14T23:49:16+00:00

EDIT: I’m slightly further along now, but the new issue is around rendering templates.

  • 0

EDIT: I’m slightly further along now, but the new issue is around rendering templates. When I go to any URL I get the following error message in the log:

server:666/ gives this error

[error] [client 192.168.100.109] client denied by server configuration: C:/I4/importicusindex.html

and server:666/export gives this error

error] [client 192.168.100.109] client denied by server configuration: C:/I4/importicusexport

It must be reading the .py file as it knows to look for index.html when accessing “/” or is that just default behaviour?


I’m struggling to get my application running in APACHE on Windows using MOD_WSGI. I’ve browsed a few answers on here already and tried following the documentation but to no avail.

The app itself runs fine using flask’s inbuilt server.

c:\i4\importicus\wsgi\importicus.WSGI

import sys
sys.path.append('c:/i4/importicus/')
activate_this = 'c:/i4/importicus/importicus.py'
execfile(activate_this, dict(__file__=activate_this))
import importicus as importicus

vhosts file

<VirtualHost *:666>
    ServerAdmin imats@copyright.com.au
    DocumentRoot "c:/i4/importicus"

    ErrorLog c:/i4/importicus/logs/engine-error_log
    CustomLog c:/i4/importicus/logs/engine-access_log common



    Alias /media c:/i4/importicus/static
    <Directory c:/i4/importicus>

        Order deny,allow
        Allow from all
    </Directory>



    WSGIScriptAlias /wsgi z:\i4\importicus\wsgi\importicus.wsgi

    <Directory c:/i4/importicus/wsgi>

        Order deny,allow
        Allow from all
    </Directory>
</VirtualHost>

c:\i4\importicus\importicus.py

from flask import Flask, render_template,jsonify, request
from werkzeug import secure_filename
import importicus_functions
import ast, os, sys
importicus_main = Flask(__name__)

UPLOAD_FOLDER = 'uploads'
importicus_main.config['UPLOAD_FOLDER'] = UPLOAD_FOLDER

#print importicus_main.config.keys()#['ROOT_PATH']='C:/IMATS-Project/legacy import scripts/importicus/'
importicus_main.debug=True


@importicus_main.route('/')
def importicus():

    return render_template('splash.html')

The only error I get is:

Forbidden

You don’t have permission to access / on this server.

so apache is obviously finding the WSGI file, but my suspicion is that I’m not running the flask application correctly.

Any help would be appreciated!
Thanks!

  • 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-14T23:49:18+00:00Added an answer on June 14, 2026 at 11:49 pm

    WSGIScriptAlias /wsgi z:\i4\importicus\wsgi\importicus.wsgi is the problem, you will note that all other paths are on c:, not z:

    Infuriating!

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

Sidebar

Related Questions

EDIT Leaving this for posterity, but nearly a year later, to get down voted,
EDIT : My main question has now become 'How do I get the ServiceManager
Edit: I just moved my HTTPRequest code into the onCreate, and now all of
EDIT After staring at this for 2 days, I do see one issue. I
EDIT: More detail here. Basically if you 1. open a tab1 to url1 (GET
EDIT: I have reworded the title question slightly, and adjusted the text to respond
EDIT I don't know is it important, but destination triangle angles may be different
EDIT: I have been using Postgres with PostGIS for a few months now, and
Edit: Updating post based on Martins comments below Hello, I'm just trying to get
EDIT: for those who come here with a similar problem, now i know this

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.