如何修复Froxlor的根目录?

时间:2016-09-25 18:52:11

标签: apache2.4

将Froxlor从Debian 7迁移到Debian 8系统。 我现在遇到的问题是,Froxlor的自动生成的vhost文件中有vhost,它引用了错误的目录。是否可以将它们更改为正确的目的地?

他们引用 / var / www / admin ,但现在我只希望他们引用 / var / www 。我无法在Froxlor数据库中找到它,也无法在配置文件或Froxlor本身的Web接口设置中找到它。

更改它的原因是我在 www.example.com/froxlor www.example.com/phpmyadmin 上的 www.example.com/froxlor 和phpMyAdmin上安装了一个froxlor安装程序。现在我希望我的概述页面在 www.example.com 上运行。 这是生成不正确的文件。 (我替换了IP'和ServerName')

# vhosts.conf
# Created 25.09.2016 15:31
# Do NOT manually edit this file, all changes will be deleted after the next domain change at the panel.

Listen 192.168.0.1:443
<VirtualHost 192.168.0.1:443>
DocumentRoot "/var/www/admin/"
 ServerName **
  FastCgiExternalServer /var/www/php-fpm/froxlor.panel/**/3384.ssl-fpm.external -socket /var/lib/apache2/fastcgi/froxlor.panel-**-php-fpm.socket -idle-timeout 1000
  <Directory "/var/www/admin/">
   <FilesMatch "\.(php)$">
     AddHandler php5-fastcgi .php
     Action php5-fastcgi /fastcgiphp
      Options +ExecCGI
    </FilesMatch>
    Require all granted
    AllowOverride All
  </Directory>
  Alias /fastcgiphp /var/www/php-fpm/froxlor.panel/**/3384.ssl-fpm.external
 SSLEngine On
 SSLProtocol ALL -SSLv2 -SSLv3
 SSLHonorCipherOrder On
 SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH
 SSLVerifyDepth 10
 SSLCertificateFile /root/froxlor-ssl/cert.pem
 SSLCertificateKeyFile /root/froxlor-ssl/key.pem
 SSLCACertificateFile /root/froxlor-ssl/root_trust_chain.pem
 SSLCertificateChainFile /root/froxlor-ssl/root_trust_chain.pem
</VirtualHost>


Listen 192.168.0.1:80
<VirtualHost 192.168.0.1:80>
DocumentRoot "/var/www/admin/"
 ServerName **
  FastCgiExternalServer /var/www/php-fpm/froxlor.panel/**/34d3.fpm.external -socket /var/lib/apache2/fastcgi/froxlor.panel-**-php-fpm.socket -idle-timeout 1000
  <Directory "/var/www/admin/">
   <FilesMatch "\.(php)$">
     AddHandler php5-fastcgi .php
     Action php5-fastcgi /fastcgiphp
      Options +ExecCGI
    </FilesMatch>
    Require all granted
    AllowOverride All
  </Directory>
  Alias /fastcgiphp /var/www/php-fpm/froxlor.panel/**/34d3.fpm.external
</VirtualHost>


Listen [::1]:443
<VirtualHost [::1]:443>
DocumentRoot "/var/www/admin/"
 ServerName **
  FastCgiExternalServer /var/www/php-fpm/froxlor.panel/**/e36f.ssl-fpm.external -socket /var/lib/apache2/fastcgi/froxlor.panel-**-php-fpm.socket -idle-timeout 1000
  <Directory "/var/www/admin/">
   <FilesMatch "\.(php)$">
     AddHandler php5-fastcgi .php
     Action php5-fastcgi /fastcgiphp
      Options +ExecCGI
    </FilesMatch>
    Require all granted
    AllowOverride All
  </Directory>
  Alias /fastcgiphp /var/www/php-fpm/froxlor.panel/**/e36f.ssl-fpm.external
 SSLEngine On
 SSLProtocol ALL -SSLv2 -SSLv3
 SSLHonorCipherOrder On
 SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH
 SSLVerifyDepth 10
 SSLCertificateFile /root/froxlor-ssl/cert.pem
 SSLCertificateKeyFile /root/froxlor-ssl/key.pem
 SSLCACertificateFile /root/froxlor-ssl/root_trust_chain.pem
 SSLCertificateChainFile /root/froxlor-ssl/root_trust_chain.pem
</VirtualHost>


Listen [::1]:80
<VirtualHost [::1]:80>
DocumentRoot "/var/www/admin/"
 ServerName **
  FastCgiExternalServer /var/www/php-fpm/froxlor.panel/**/fae9.fpm.external -socket /var/lib/apache2/fastcgi/froxlor.panel-**-php-fpm.socket -idle-timeout 1000
  <Directory "/var/www/admin/">
   <FilesMatch "\.(php)$">
     AddHandler php5-fastcgi .php
     Action php5-fastcgi /fastcgiphp
      Options +ExecCGI
    </FilesMatch>
    Require all granted
    AllowOverride All
  </Directory>
  Alias /fastcgiphp /var/www/php-fpm/froxlor.panel/**/fae9.fpm.external
</VirtualHost>

是否可以禁用froxlor的根目录自动创建?并使用此解决方案。 http到https

<VirtualHost *:80>
        ServerName **
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        <IfModule mod_php5.c>
            php_admin_flag display_errors off
            php_admin_flag display_startup_errors off
        </IfModule>
RewriteEngine on
RewriteCond %{SERVER_NAME} =**
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
</VirtualHost>

<VirtualHost *:443>
 ServerName **
        DocumentRoot /var/www/website/silex/web/
        <Directory /var/www/website/silex/web/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                DirectoryIndex /index.php
                FallbackResource /index.php
                Order allow,deny
                Allow from all
        </Directory>
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
        <IfModule mod_php5.c>
            php_admin_flag display_errors on
            php_admin_flag display_startup_errors on
        </IfModule>
 SSLEngine On
 SSLHonorCipherOrder On
 SSLCipherSuite ECDHE-RSA-AES128-SHA256:AES128-GCM-SHA256:RC4:HIGH:!MD5:!aNULL:!EDH
 SSLVerifyDepth 10
 SSLCertificateFile /root/ssl/cert.pem
 SSLCertificateKeyFile /root/ssl/key.pem
</VirtualHost>

Alias配置文件:

# froxlor default Apache configuration

Alias /froxlor /var/www/froxlor/

<Directory /var/www/froxlor/>
    Options FollowSymLinks
    DirectoryIndex index.php
    Require all granted
</Directory>

1 个答案:

答案 0 :(得分:0)

我找到了解决方案。 您可以在ips和端口下的Webinterface中进行设置。并编辑Ip Adresses他们的。

Ressourcen / IPs和Ports / Optionen |修改

他们是网站的用户定义文档根目录。

它不在系统设置下。