[MontelLUG] {Disarmed} Re: Apache con otrs default page

Luca 'remix_tj' Lorenzetto lorenzetto.luca a gmail.com
Gio 16 Ago 2018 13:49:27 CEST


Ciao,

Scusate il quoting ma sono in ferie.

Metti

<Location />

E

ScriptAlias /

Anziché

<Location /otrs>

E

ScriptAlias /otrs/

Dovrebbe bastare.

Luca

Il gio 16 ago 2018, 12:16 Samuele via montellug <montellug a montellug.it> ha
scritto:

> Ho otrs che risponde su
> http://192.168.0.100/otrs
>
> vorrei che rispondesse direttamente su
> http://192.168.0.100
>
> Ho 000-default.conf, ho sostituito la DocumentRoot, ma apache continua a
> mostrarmi la default page di apache.
>
> Come ci fosse qualcosa che sovrascrive le mie impostazioni.
>
> Non ne vengo fuori.
>
> Il file otrs.conf dentro sites-enabled
>
> NameVirtualHost *:80
> NameVirtualHost *:443
>
> <VirtualHost *:80>
>      UseCanonicalName Off
>      ServerAdmin  webmaster a localhost
>      DocumentRoot /opt/otrs/var/httpd/htdocs/
> </VirtualHost>
>
> <VirtualHost *:443>
>      SSLEngine on
>      SSLCertificateFile /etc/apache2/ssl/apache.crt
>      SSLCertificateKeyFile /etc/apache2/ssl/apache.key
>      ServerAdmin  webmaster a localhost
>      DocumentRoot /opt/otrs/var/httpd/htdocs/
> </VirtualHost>
>
> Perlrequire /usr/share/otrs/scripts/apache2-perl-startup.pl
> PerlModule Apache2::RequestRec
> PerlModule Apache2::Reload
> PerlInitHandler Apache2::Reload
>
> <Directory /var/www/>
>      Options -Indexes +FollowSymLinks
>      AddHandler cgi-script .cgi
>      AllowOverride All
>      order allow,deny
>      allow from all
> </Directory>
>
> Alias /docs /usr/share/doc/otrs2-doc-en/html
> <Directory /usr/share/doc/otrs2-doc-en/html>
>      Options +FollowSymLinks
>      AllowOverride All
>      order allow,deny
>      allow from all
> </Directory>
>
> <Location /otrs>
>      ErrorDocument 403 /otrs/index.pl
>      ErrorDocument 404 /otrs/index.pl
>      SetHandler  perl-script
>      PerlResponseHandler ModPerl::Registry
>      Options +ExecCGI +FollowSymLinks
>      PerlOptions +ParseHeaders
>      PerlOptions +SetupEnv
>      Order allow,deny
>      Allow from all
>
>      RewriteEngine On
>      RewriteCond /var/lib/otrs/httpd/htdocs/maintainance.html -l
>      RewriteRule ^.*$ /maintainance.html
> </Location>
>
> Alias /otrs-web/ /opt/otrs/var/httpd/htdocs/
> <Directory /opt/otrs/var/httpd/htdocs/>
>      Options +FollowSymLinks
>      AllowOverride All
>      order allow,deny
>      allow from all
> </Directory>
>
> ScriptAlias /otrs/ /usr/share/otrs/bin/cgi-bin/
> <Directory /usr/share/otrs/bin/cgi-bin/>
>      AllowOverride None
>      Options +ExecCGI -Includes
>      Order allow,deny
>      Allow from all
> </Directory>
>
> # MaxRequestsPerChild (so no apache child will be to big!)
> MaxRequestsPerChild 400
>
> _______________________________________________
> montellug mailing list
> montellug a montellug.it
> http://mail.montellug.it/mailman/listinfo/montellug
>
-------------- parte successiva --------------
Un allegato HTML è stato rimosso...
URL: <http://mail.montellug.it/pipermail/montellug/attachments/20180816/2643cde3/attachment.html>


Maggiori informazioni sulla lista montellug