[Qgis-user] QGIS Server

Clifford Snow clifford at snowandsnow.us
Fri Feb 19 16:44:26 PST 2016


Below is my sites-available config. If anyone else has a working copy for
Ubuntu's Wily I would appreciate a copy.

Apache loads with no error messages. Logs report mod_fcgid configured. Yet
when querying
localhost/cgi-bin/qgis_mapserv.fcgi?SERVICE=MMS&VERSION=1.3&REQUEST=GetCapabilites,
apache returns a 404 "The requested URL /cgi-bin/qgis_mapserv.fcgi was not
found on this server."

001-qgis-server.conf

<VirtualHost *:80>

  ServerAdmin webmaster at localhost

  DocumentRoot /var/www/html

  ServerName <localhost>

  ErrorLog ${APACHE_LOG_DIR}/qgis-server-error.log

  CustomLog ${APACHE_LOG_DIR}/qgis-server-access.log combined

  # Longer timeout for WPS... default = 40

  FcgidIOTimeout 120

  FcgidInitialEnv LC_ALL "en_US.UTF-8"

  FcgidInitialEnv PYTHONIOENCODING UTF-8

  FcgidInitialEnv LANG "en_US.UTF-8"

  FcgidInitialEnv QGIS_DEBUG 1

  FcgidInitialEnv QGIS_SERVER_LOG_FILE /tmp/qgis-000.log

  FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0

 # FcgidInitialEnv QGIS_PLUGINPATH "/opt/qgis-server/plugins"

  # Needed for QGIS HelloServer plugin HTTP BASIC auth

  ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/qgis_mapserv.fcgi

  <Directory "/usr/lib/cgi-bin/qgis_mapserv.fcgi">

      AllowOverride None

      Options +ExecCGI -MultiViews -SymLinksIfOwnerMatch

      # for apache2 > 2.4

      Require all granted

      #Allow from all

      SetEnv QGIS_LOG_FILE /tmp/qgislog.txt

      AddHandler fcgi-script .fcgi

  </Directory>

    ErrorLog ${APACHE_LOG_DIR}/qgis-web-client-error.log

    CustomLog ${APACHE_LOG_DIR}/qgis-web-client-access.log combined

 </VirtualHost>




On Thu, Feb 18, 2016 at 11:35 PM, Luca Manganelli <luca76 at gmail.com> wrote:

> On Fri, Feb 19, 2016 at 8:08 AM, Clifford Snow <clifford at snowandsnow.us>
> wrote:
> > Now I'm getting a .cgi-bin/qgis_mapserv.fcgi was not found
>
> Where is your qgis_mapserv.fcgi located? You should link to the
> cgi-bin directory (see your apache2 configuration)
>



-- 
@osm_seattle
osm_seattle.snowandsnow.us
OpenStreetMap: Maps with a human touch
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20160219/14786e47/attachment.html>


More information about the Qgis-user mailing list