httpd-vhosts.conf

vhosts - João Gaspar, 2019-03-08 09:42 AM

Download (2.81 KB)

 
1
# Virtual Hosts
2
#
3
# Required modules: mod_log_config
4

    
5
# If you want to maintain multiple domains/hostnames on your
6
# machine you can setup VirtualHost containers for them. Most configurations
7
# use only name-based virtual hosts so the server doesn't need to worry about
8
# IP addresses. This is indicated by the asterisks in the directives below.
9
#
10
# Please see the documentation at 
11
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
12
# for further details before you try to setup virtual hosts.
13
#
14
# You may use the command line option '-S' to verify your virtual host
15
# configuration.
16

    
17
#
18
# VirtualHost example:
19
# Almost any Apache directive may go into a VirtualHost container.
20
# The first VirtualHost section is used for all requests that do not
21
# match a ServerName or ServerAlias in any <VirtualHost> block.
22
#
23
<VirtualHost *:80>
24

    
25

    
26

    
27
SetEnv GDAL_DATA "C:\OSGeo4W64\share\gdal"
28
SetEnv QGIS_AUTH_DB_DIR_PATH "C:\OSGeo4W64\apps\qgis-ltr\resources"
29
SetEnv PYTHONHOME "C:\OSGeo4W64\apps\Python37"
30
SetEnv PATH "C:\OSGeo4W64\bin;C:\OSGeo4W64\apps\qgis-ltr\bin;C:\OSGeo4W64\apps\Qt5\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem"
31
SetEnv QGIS_PREFIX_PATH "C:\OSGeo4W64\apps\qgis-ltr"
32
SetEnv QT_PLUGIN_PATH "C:\OSGeo4W64\apps\qgis\qtplugins;C:\OSGeo4W64\apps\Qt5\plugins"
33

    
34

    
35

    
36
FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
37
FcgidInitialEnv QGIS_SERVER_LOG_FILE "C:\webserver\Apache24\logs\qgis_server.log"
38

    
39
FcgidIOTimeout 120
40
      FcgidInitialEnv LC_ALL "en_US.UTF-8"
41
      FcgidInitialEnv PYTHONIOENCODING UTF-8
42
      FcgidInitialEnv LANG "en_US.UTF-8"
43
      FcgidInitialEnv QGIS_DEBUG 1
44
      FcgidInitialEnv QGIS_SERVER_LOG_FILE "C:\webserver\Apache24\logs\qgis_server.log"
45
      FcgidInitialEnv QGIS_SERVER_LOG_LEVEL 0
46
      FcgidInitialEnv QGIS_PLUGINPATH "C:\OSGeo4W64\apps\qgis-ltr\python\plugins"
47

    
48
SetEnvIf Request_URI ^/qgis QGIS_PREFIX_PATH "C:\OSGeo4W64\apps\qgis-ltr"
49
SetEnvIf Request_URI ^/qgis TEMP "C:\Temp"
50

    
51
SetEnvIf Request_URI ^/qgis GDAL_DATA "C:\OSGeo4W64\share\gdal"
52
SetEnvIf Request_URI ^/qgis GDAL_DRIVER_PATH "C:\OSGeo4W64\bin"
53
SetEnvIf Request_URI ^/qgis PDAL_DRIVER_PATH "C:\OSGeo4W64\bin"
54
SetEnvIf Request_URI ^/qgis GDAL_SKIP "JP2ECW"
55
SetEnvIf Request_URI ^/qgis PROJ_LIB "C:\OSGeo4W64\share\proj"
56

    
57

    
58
  ServerName cartogis
59
  DocumentRoot "C:/webserver/Apache24/htdocs/"
60

    
61
  <Directory "C:/webserver/Apache24/htdocs/">
62
      Options -Indexes +FollowSymLinks +ExecCGI
63
      AllowOverride All
64
      Require all granted
65
  </Directory>
66

    
67

    
68
  Alias /qgis/ "C:/OSGeo4W64/apps/qgis-ltr/bin/"
69

    
70
  
71
  <Directory "C:/OSGeo4W64/apps/qgis-ltr/bin">
72
	SetHandler cgi-script
73
	AllowOverride None
74
	Options ExecCGI
75
	Order allow,deny
76
	Allow from all
77
	Require all granted
78
  </Directory>
79
  
80
 
81
	CustomLog "logs/lizmap-access.log" common
82
	ErrorLog "logs/lizmap-error.log"
83

    
84

    
85

    
86
    
87
</VirtualHost>
88