[Osgeo4w-trac] [osgeo4w] #880: qwc2 Internal Server Error
OSGeo4W
trac_osgeo4w at osgeo.org
Fri May 16 02:06:54 PDT 2025
#880: qwc2 Internal Server Error
-----------------------------+---------------------------
Reporter: andreaordonselli | Owner: osgeo4w-dev@…
Type: defect | Status: new
Priority: normal | Component: Package
Version: | Keywords:
-----------------------------+---------------------------
As described in this issue https://github.com/qgis/qwc2/issues/427, I am
encountering problems launching the QWC2 interface installed via the
OSGeo4W package manager on Windows PCs. Here is the text I am reporting:
Good morning,
on a Windows PC, I have installed these packages:
[[Image(https://private-user-
images.githubusercontent.com/89784373/444220176-15b04f70-0123-4b47-8974-14edd87e7dcc.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NDczODYyNzAsIm5iZiI6MTc0NzM4NTk3MCwicGF0aCI6Ii84OTc4NDM3My80NDQyMjAxNzYtMTViMDRmNzAtMDEyMy00YjQ3LTg5NzQtMTRlZGQ4N2U3ZGNjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTA1MTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwNTE2VDA4NTkzMFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTUwZDVlMTljNzZhOGI2M2MzZTRiZTQ5ZWFiYjg3MmZkMjA5MDYyZjgyZjA3OTkwNTFhZGM3NWEzMDlmNTg2OWQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0
.cTygAE_WfNf_fP62sbsF46EgoOIFu-rfQAuD0us-0Wg)]]
Starting Apache, I could access {{{localhost}}} and {{{localhost:8001}}}
fine, but I couldn't reach {{{localhost:8001/qwc2}}}.
So, I checked the file {{{C:\Program Files\QGIS 3.42.0\httpd.d\httpd_qwc-
services.conf}}}, and it contained incorrect references.
Before:
{{{
WSGIScriptAlias /api/data ${QWCS_DIR}/qwc-data-service/server.wsgi
#WSGIScriptAlias /api/legend ${QWCS_DIR}/qwc-legend-service/server.wsgi
WSGIScriptAlias /api/permalink ${QWCS_DIR}/qwc-permalink-
service/server.wsgi
WSGIScriptAlias /api/print ${QWCS_DIR}/qwc-print-service/server.wsgi
WSGIScriptAlias /config ${QWCS_DIR}/qwc-config-
generator/server.wsgi
WSGIScriptAlias /auth ${QWCS_DIR}/qwc-db-auth/server.wsgi
#WSGIScriptAlias /auth ${QWCS_DIR}/qwc-ldap-auth/server.wsgi
WSGIScriptAlias /wms ${QWCS_DIR}/qwc-ogc-service/server.wsgi
WSGIScriptAlias /qwc-admin ${QWCS_DIR}/qwc-admin-gui/server.wsgi
WSGIScriptAlias /qwc2 ${QWCS_DIR}/qwc-map-viewer/server.wsgi
}}}
After adding the src subfolder:
{{{
WSGIScriptAlias /api/data ${QWCS_DIR}/qwc-data-
service/src/server.wsgi
#WSGIScriptAlias /api/legend ${QWCS_DIR}/qwc-legend-
service/src/server.wsgi
WSGIScriptAlias /api/permalink ${QWCS_DIR}/qwc-permalink-
service/src/server.wsgi
WSGIScriptAlias /api/print ${QWCS_DIR}/qwc-print-
service/src/server.wsgi
WSGIScriptAlias /config ${QWCS_DIR}/qwc-config-
generator/src/server.wsgi
WSGIScriptAlias /auth ${QWCS_DIR}/qwc-db-auth/src/server.wsgi
#WSGIScriptAlias /auth ${QWCS_DIR}/qwc-ldap-auth/src/server.wsgi
WSGIScriptAlias /wms ${QWCS_DIR}/qwc-ogc-
service/src/server.wsgi
WSGIScriptAlias /qwc-admin ${QWCS_DIR}/qwc-admin-gui/src/server.wsgi
WSGIScriptAlias /qwc2 ${QWCS_DIR}/qwc-map-viewer/src/server.wsgi
}}}
Now I receive:
{{{
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your request.
Please contact the server administrator at webmaster at localhost to inform
them of the time this error occurred, and the actions you performed just
before this error.
More information about this error may be available in the server error
log.
}}}
Can you help me?
--
Ticket URL: <https://trac.osgeo.org/osgeo4w/ticket/880>
OSGeo4W <http://trac.osgeo.org/osgeo4w>
OSGeo4W is the Windows installer and package environment for the OSGeo stack.
More information about the Osgeo4w-trac
mailing list