我不会在我的域名上得到我的项目。它给了我Apache,而不是我在webapps中添加的项目。
我有我的战争档案FINAL_WE.war in /opt/code/apache-tomcat-8.5.54/webapps/
我已经启动了我的tomcat服务器。使用/bin/ sh startup.sh文件夹。
日志给了我tail -f catalina.out
20-Apr-2020 04:06:13.733 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent The APR based Apache
让我的ServerAlias域正确工作是有问题的。apache2ctl -S给出:
IP.ADDRESS:80 is a NameVirtualHost
default server byteinsight.net (/etc/apache2/sites-enabled/000-default.conf:1)
port 80 namevhost byteinsight.net (/etc/apache2/sites-enabled/000-default.conf:1)
wild alias *.byteinsight.uk
wild alias *.byteinsi
我用的是Yosemite和Apache 2.4
/private/etc/apache2/httpd.conf
ServerName 127.0.0.1:80
DocumentRoot "/Library/WebServer/Documents/"
<Directory "/Library/WebServer/Documents">
Options Multiviews FollowSymLinks
MultiviewsMatch Any
AllowOverride All
Order allow,deny
A
在我的开发工作站(实际上包含在/etc/apache2/ apache.conf /andrew.conf)中,我有以下内容:
<Directory "/Users/andrew/Sites/">
Options Indexes MultiViews
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<VirtualHost *:80>
DocumentRoot /Users/andrew/Sites/mysite/public
Server
除了默认的SSL之外,我拥有的主机是entis.bla.nl和test.bla.nl,当进入test.bla.nl时,所服务的页面来自entis.bla.nl。如果我通过IP访问服务器,就会得到默认的SSL主机,这应该是您所期望的,如下所示。
wildcard NameVirtualHosts and _default_ servers:
*:443 is a NameVirtualHost
default server bla.colo.bla.net (/etc/apache2/sites-enabled/defaul
我已经在Debian拉伸系统上安装了Apache。我没有启用任何站点,但是由于某种原因,如果我转到/var/www/html/index.html,http://hostname仍然呈现。
加载站点:
root@hostname:/etc/apache2# a2query -s
No site matches (disabled by site administrator)
访问日志将转到/var/log/apache2/other_vhosts_access.log,它在/etc/apache2/conf-enabled/other-vhosts-access-log.conf ->
你认为什么能解决我的问题?
user@admin:~$ sudo service apache2 restart
sudo: unable to resolve host admin
* Restarting web server apache2
AH00548: NameVirtualHost has no effect and will be removed in the next release
/etc/apache2/ports.conf:8