web-1/httpd.conf

113 lines
3.4 KiB
ApacheConf

ServerRoot "/usr/local"
LoadModule authn_file_module libexec/apache24/mod_authn_file.so
LoadModule authn_core_module libexec/apache24/mod_authn_core.so
LoadModule authz_host_module libexec/apache24/mod_authz_host.so
LoadModule authz_groupfile_module libexec/apache24/mod_authz_groupfile.so
LoadModule authz_user_module libexec/apache24/mod_authz_user.so
LoadModule authz_core_module libexec/apache24/mod_authz_core.so
LoadModule access_compat_module libexec/apache24/mod_access_compat.so
LoadModule auth_basic_module libexec/apache24/mod_auth_basic.so
LoadModule reqtimeout_module libexec/apache24/mod_reqtimeout.so
LoadModule filter_module libexec/apache24/mod_filter.so
LoadModule mime_module libexec/apache24/mod_mime.so
LoadModule log_config_module libexec/apache24/mod_log_config.so
LoadModule env_module libexec/apache24/mod_env.so
LoadModule headers_module libexec/apache24/mod_headers.so
LoadModule setenvif_module libexec/apache24/mod_setenvif.so
LoadModule version_module libexec/apache24/mod_version.so
LoadModule ssl_module libexec/apache24/mod_ssl.so
LoadModule unixd_module libexec/apache24/mod_unixd.so
LoadModule status_module libexec/apache24/mod_status.so
LoadModule autoindex_module libexec/apache24/mod_autoindex.so
LoadModule dir_module libexec/apache24/mod_dir.so
LoadModule alias_module libexec/apache24/mod_alias.so
LoadModule fastcgi_module libexec/apache24/mod_fastcgi.so
<IfModule unixd_module>
User www
Group www
</IfModule>
ServerAdmin you@example.com
ServerName localhost:38141
<Directory />
AllowOverride none
Require all denied
</Directory>
DocumentRoot "/path/to/your/web-1/web"
<Directory "/path/to/your/web-1/web">
Options Indexes FollowSymLinks
AllowOverride None
Require all granted
</Directory>
<IfModule dir_module>
DirectoryIndex index.html
</IfModule>
<Files ".ht*">
Require all denied
</Files>
ErrorLog "/path/to/your/web-1/error.log"
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
<IfModule logio_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
</IfModule>
CustomLog "/path/to/your/web-1/access.log" combined
</IfModule>
<IfModule alias_module>
ScriptAlias /cgi-bin/ "/usr/local/www/apache24/cgi-bin/"
</IfModule>
<IfModule mime_module>
TypesConfig etc/apache24/mime.types
AddType application/x-compress .Z
AddType application/x-gzip .gz .tgz
</IfModule>
<IfModule proxy_html_module>
Include etc/apache24/extra/proxy-html.conf
</IfModule>
<IfModule ssl_module>
SSLRandomSeed startup builtin
SSLRandomSeed connect builtin
</IfModule>
Include etc/apache24/extra/httpd-vhosts.conf
Listen 38141
PidFile "/path/to/your/web-1/httpd.pid"
Mutex default:/path/to/your/web-1/mutex-dir/
<VirtualHost *:38141>
ServerName localhost
DocumentRoot /path/to/your/web-1/web
Alias /index "/path/to/your/web-1/web"
<Directory "/path/to/your/web-1/web">
Options +Indexes
AllowOverride None
Require all granted
</Directory>
ScriptAlias /fcgi-bin/ /path/to/your/web-1/out/artifacts/web_1_jar/
<Location "/fcgi-bin/">
SetHandler fastcgi-script
Options +ExecCGI
Require all granted
</Location>
FastCgiExternalServer /path/to/your/web-1/out/artifacts/web_1_jar/app.jar -host localhost:35473
</VirtualHost>