Skip to content

[QUESTION] Apache config #1

Description

@mzch

It seems that InShare works well by using the following config. Is this OK?

  • install base: /srv/inshare/inshare
  • backend port: 5555
<IfModule mod_ssl.c>
<VirtualHost *:443>

	ServerName i.uixsv.com
	ServerAdmin webmaster@uixsv.com

	Include /etc/letsencrypt/options-ssl-apache.conf
	SSLCertificateFile /etc/letsencrypt/live/uixsv.com/fullchain.pem
	SSLCertificateKeyFile /etc/letsencrypt/live/uixsv.com/privkey.pem

	RequestHeader set X-Forwarded-Proto "https"
	ProxyPreserveHost On
	ProxyRequests Off

	<Location /api>
		ProxyPass http://127.0.0.1:5555/api
		ProxyPassReverse http://127.0.0.1:5555/api
	</Location>

	<Location /files>
		ProxyPass http://127.0.0.1:5555/files
		ProxyPassReverse http://127.0.0.1:5555/files
	</Location>

	Alias /img/ /srv/inshare/inshare/public/img/
	Alias /css/ /srv/inshare/inshare/public/css/
	<Directory "/srv/inshare/inshare/public">
		Require all granted
	</Directory>

	DocumentRoot /srv/inshare/inshare/insare-client
	<Directory "/srv/inshare/inshare/insare-client">
		Options SymLinksIfOwnerMatch
		AllowOverride All
		Require all granted
	</Directory>

	ErrorLog ${APACHE_LOG_DIR}/error.log
	CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>
</IfModule>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions