在Apache 2.2中有mod dbd_modules-1.0.x,它允许你在SQL数据库中pipe理虚拟主机。 在Apache 2.4中是否有相当的function?
我有一个apache安装程序与以下V主机*:443是一个NameVirtualHost default server default.pegasustech.com.au (/etc/apache2/vhosts.d/1-default.conf:4) port 443 namevhost default.pegasustech.com.au (/etc/apache2/vhosts.d/1-default.conf:4) port 443 namevhost client.pegasustech.com.au (/etc/apache2/vhosts.d/client.pegasustech.com.au.conf:4) port 443 namevhost websys.pegasustech.com.au (/etc/apache2/vhosts.d/websys.pegasustech.com.au.conf:18) port 443 namevhost www.pegasustech.com.au (/etc/apache2/vhosts.d/www.pegasustech.com.au.conf:31) 我的Apache服务器有2个接口,一个内部和一个外部。 我想将websys.pegasustech.com.au的不同configuration绑定到接口,所以我将websys.pegasustech.com.au.conf的configuration文件从10.xxx:443和203.xxx:443两个副本 这工作,我得到了 VirtualHostconfiguration: 10.242.1.241:443 websys.pegasustech.com.au (/etc/apache2/vhosts.d/websys.pegasustech.com.au.conf:67) 203.111.76.130:443 websys.pegasustech.com.au (/etc/apache2/vhosts.d/websys.pegasustech.com.au.conf:18) *:443是NameVirtualHost default server default.pegasustech.com.au (/etc/apache2/vhosts.d/1-default.conf:4) port 443 namevhost default.pegasustech.com.au (/etc/apache2/vhosts.d/1-default.conf:4) port 443 namevhost client.pegasustech.com.au (/etc/apache2/vhosts.d/client.pegasustech.com.au.conf:4) port 443 namevhost www.pegasustech.com.au (/etc/apache2/vhosts.d/www.pegasustech.com.au.conf:31) […]
我有一个FTP服务器和地址是像“192.168.3.180 / example1”,“192.168.3.180 / example2”我想要某种types的地址映射像“example1”和“example2”例如当用户键入“ ftp:/ / example1 “在浏览器中这个映射到” ftp://192.168.3.180/example1 “我在linux下工作debian和pureFTP
在我的Apacheconfiguration中,我有一个奇怪的情况。 我决定使用FastCGI和多个版本的PHP。 以下是我的configuration文件。 如果我检查phpinfo(); 我可以看到,在域localhost它是加载php.ini文件夹php56 。 还行吧。 我不明白,为什么在域localhost7它是加载php.ini文件夹php71 。 我不会为PHP7改变PHPRC ,但它正在加载不同的configuration文件。 这是如何工作,或为什么它是从不同的文件夹中加载php.ini? 如果我将PHPRC改为完全不同的文件夹,它也可以。 这是不是常量没有使用,或者是因为我在Windows(不同的行为)? <IfModule fcgid_module> FcgidInitialEnv PATH "C:/www/xampp/php5.6;C:/WINDOWS/system32;C:/WINDOWS;C:/WINDOWS/System32/Wbem;" FcgidInitialEnv SystemRoot "C:/Windows" FcgidInitialEnv SystemDrive "C:" FcgidInitialEnv TEMP "C:/www/xampp/tmp" FcgidInitialEnv TMP "C:/www/xampp/tmp" FcgidInitialEnv windir "C:/WINDOWS" FcgidIOTimeout 64 FcgidConnectTimeout 16 FcgidMaxRequestsPerProcess 1000 FcgidMaxProcesses 3 FcgidMaxRequestLen 8131072 # Location php.ini: FcgidInitialEnv PHPRC "C:/www/xampp/php5.6/" FcgidInitialEnv PHP_FCGI_MAX_REQUESTS 1000 <Files ~ […]
我试图configurationApache浏览器caching,但似乎没有工作的一半时间。 这是我的虚拟主机configuration: <IfModule mod_ssl.c> <VirtualHost *:443> ServerName example.com ServerAdmin webmaster@localhost DocumentRoot /var/www/example ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined <Directory /var/www/example> <IfModule mod_expires.c> <FilesMatch ".+\.(jpe?g|png|gif|js|css|woff|woff2|svg|eot|ttf)$"> ExpiresActive On ExpiresDefault "access plus 2 weeks" </FilesMatch> </IfModule> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> RewriteEngine on SSLCertificateFile /etc/letsencrypt/live/example.com/fullchain.pem SSLCertificateKeyFile /etc/letsencrypt/live/example.com/privkey.pem Include /etc/letsencrypt/options-ssl-apache.conf </VirtualHost> </IfModule> 这是一个curltesting: […]
我有Webmin在Ubuntu 16.04.3 LTS上运行(用于usermin网站)。 它工作正常,可以从10000端口pipe理,但10000端口停止听现在每天(我得到关于失败的提示是它的备份不运行,所以它的报告邮件永远不会到达)。 当我看到:10000在我的浏览器中无法连接错误,我可以ssh进去看看 netstat -anp | grep 10000 没有结果,服务似乎仍在运行(托pipe网站本身仍然工作): service –status-all | grep min [ + ] usermin [ + ] webmin 如果我做: service webmin stop service webmin start 它修复了它(我可以进入,手动运行virtualmin备份,或者如果它还没有崩溃,下一次计划运行,将工作)。 通常通过晚间备份(如果我在早上注意到),它已经“崩溃”,或者一夜之间。 有没有'webmin的线索去这里'日志我可以检查,即使具体发生这种情况可能会注意到? (对不起,如果这是其他地方logging,我能find的search都是关于第一次获得10000回答,不工作 – 罚 – 停 – 没有明显的错误)。
我有一个VirtualHost中的下一个云(参见下面的configuration)。 当我只在Ubuntu 16.04的Apache上启用虚拟主机(nextcloud.conf)时,它可以工作。 但是当我启用000-default.conf和default-ssl.conf时,它会一直带我到主页而不是下一个页面。 我已经发布了所有的configuration文件。 我想得到默认的虚拟主机工作,因为我想抓住所有不匹配下一个云configuration的url。 nextcloud.conf <VirtualHost *:80> ServerName storage.declanmarks.pw RewriteEngine On RewriteCond %{HTTP_HOST} ^storage.declanmarks.pw RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L] #RewriteRule ^(.*)$ https://storage.declanmarks.pw$1 [R,L] </VirtualHost> <VirtualHost *:443> Alias /files /var/www/files ServerName storage.declanmarks.pw DocumentRoot /var/www/nextcloud/ ServerAlias storage.declanmarks.pw <Directory /var/www/nextcloud/> Options +FollowSymlinks AllowOverride All <IfModule mod_dav.c> Dav off </IfModule> SetEnv HOME /var/www/nextcloud SetEnv HTTP_HOME /var/www/nextcloud </Directory> # […]
这是我的另一篇文章的延续: 抓住所有VirtualHost不工作 。 我有虚拟主机的工作。 但是,我知道如何让它redirect一个自定义的错误页面,如404。 在我的VirtualHost中添加Redirect 404 / ,它将我带到默认的404页面。 但是,当我启用ErrorDocument 404 /errors/index.php我得到以下错误 Not Found The requested URL / was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 以下是我的configuration <VirtualHost *:80> DocumentRoot /var/www/main ServerName null Redirect 404 / ErrorDocument 404 /errors/index.php […]
我们正在使用伪造和云雾。 当我们通过伪造laravel来安装ssl证书时,我们总会在所有浏览器中看到错误“太多的redirect”。 我们也使用cloudflare并将SSL设置为Full,并且尝试了Full Strict,但是我们总是得到相同的错误。 不知道,如果我们的虚拟主机configuration文件有错误? # FORGE CONFIG (DOT NOT REMOVE!) include forge-conf/domain.com/before/*; server { listen 443 ssl http2; listen [::]:443 ssl http2; server_name .domain.com; root /home/forge/domain.com/public; # FORGE SSL (DO NOT REMOVE!) ssl_certificate /etc/nginx/ssl/domain.com/236032/server.crt; ssl_certificate_key /etc/nginx/ssl/domain.com/236032/server.key; ssl_protocols TLSv1 TLSv1.1 TLSv1.2; ssl_ciphers '……..'; ssl_prefer_server_ciphers on; ssl_dhparam /etc/nginx/dhparams.pem; add_header X-Frame-Options "SAMEORIGIN"; add_header X-XSS-Protection "1; mode=block"; add_header […]
我试图在一个Ubuntu 16.04安装上设置多个网站,到目前为止已经安装了LAMP和SSL(Letsencrypt)的Ubuntu。 Ubuntu 16.04 PHP 7.0 的Apache2 MariaDB的 问题:第一个域(website1.com)指向正确的文件夹(var / www / html / website1),但我的第二个域(website2.com)指向第一个(var / www / html / website1)。 我创build了/etc/apache2/sites-available/website1.conf和/etc/apache2/sites-available/website2.conf文件,configuration如下: Website1.conf <IfModule mod_ssl.c><VirtualHost *:443> ServerAdmin [email protected] ServerName website1.com ServerAlias www.website1.com DocumentRoot /var/www/html/website1 <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/html/website1> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> […]