GithubHelp home page GithubHelp logo

[DOC] Apache2 configuration about flus HOT 3 CLOSED

flusio avatar flusio commented on July 21, 2024
[DOC] Apache2 configuration

from flus.

Comments (3)

marienfressinaud avatar marienfressinaud commented on July 21, 2024

Unfortunately, I don't use Apache and I'm not sure what's the correct configuration. I think you can adapt the configuration suggested by Symfony (https://symfony.com/doc/current/setup/web_server_configuration.html#apache) as the requirements are similar.

from flus.

floviolleau avatar floviolleau commented on July 21, 2024

Hi,

I managed to make it working. I use a reverse proxy + installation in subpath mode.

Proxy config:

<VirtualHost *:80>
        Protocols h2 h2c http/1.1
        ServerAdmin <redacted>
        ServerName <redacted>

        RewriteEngine On
        RewriteCond %{HTTPS} off
	RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

        ErrorLog ${APACHE_LOG_DIR}/<redacted>/error.log

        # Possible values include: debug, info, notice, warn, error, crit,
        # alert, emerg.
        LogLevel warn

        CustomLog ${APACHE_LOG_DIR}/<redacted>/access.log combined
</VirtualHost>

<VirtualHost *:443>
        Protocols h2 h2c http/1.1
        ServerAdmin <redacted>
        ServerName <redacted>

        SSLEngine on
        SSLCertificateFile    <redacted>
        SSLCertificateKeyFile <redacted>

        Alias /proxy-errors /var/www/html/public/errors
        ProxyPass /proxy-errors/ !

	ProxyRequests Off
	ProxyVia Off
	<Proxy *>
		Options -Indexes
		AddDefaultCharset off
		Order deny,allow
		Allow from all
	</Proxy>

        ProxyPass /flusio http://<redacted>:8080/flusio/ retry=1 acquire=3000 timeout=600 Keepalive=On
        ProxyPassReverse /flusio http://<redacted>:8080/flusio/

        [...]
</VirtualHost>

Server config:

<VirtualHost *:8080>
       Protocols h2 h2c http/1.1
       ServerAdmin <redacted>
       ServerName <redacted>

       ErrorLog ${APACHE_LOG_DIR}/<redacted>/error.log

       # Possible values include: debug, info, notice, warn, error, crit,
       # alert, emerg.
       LogLevel warn

       CustomLog ${APACHE_LOG_DIR}/<redacted>/access.log combined

       DocumentRoot /var/www/html
       <Directory />
               Options -Indexes +FollowSymLinks +MultiViews
               AllowOverride None
               Order allow,deny
               allow from all
               LimitRequestBody 0
       </Directory>

       <Location /flusio>
              Options -Indexes -MultiViews +SymLinksIfOwnerMatch
              RewriteEngine On
              RewriteCond %{REQUEST_FILENAME} !-f
              RewriteCond %{REQUEST_FILENAME} !-d
              RewriteRule ^/(.*)$ index.php?/$1 [L,NC]
       </Location>

       RequestHeader set "X-Forwarded-Proto" expr=%{REQUEST_SCHEME}
       ProxyRequests Off
       ProxyPreservehost on

       [...]

.env

# Must be the (sub)domain which will serve flusio
APP_HOST=<redacted>

# The next line can be uncommented and be set if you plan to serve flusio on a
# subpath.
APP_PATH=/flusio

from flus.

marienfressinaud avatar marienfressinaud commented on July 21, 2024

Thnaks for sharing your config! I've never installed flusio under a subpath, so I'm glad if it works well 👍

from flus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.