我在Ubuntu服务器中有一个tomcat web应用程序。 Web应用程序被部署为ROOT 。 我已经安装了apache2并通过一个VirtualHost我指出的IP直接到tomcat的Web应用程序。 所以我可以直接通过IP(和域)访问网站,比如125.20.20.50或example.com 。 请检查以下文件,该文件是\etc\apache2\sites-enabled\的000-default.conf 。 <VirtualHost *:80> ProxyPreserveHost On # Servers to proxy the connection, or; # List of application servers: # Usage: # ProxyPass / http://[IP Addr.]:[port]/ # ProxyPassReverse / http://[IP Addr.]:[port]/ # Example: ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ ServerName localhost </VirtualHost> <VirtualHost *:443> ServerAdmin webmaster@localhost DocumentRoot /opt/apache-tomcat-7.0.79/webapps/ROOT/ ErrorLog […]
我正在使用Munin来监视我的服务器。 我安装了apache_watch_插件,以便我可以看到apache相关的活动。 apache_accesses , apache_processes和apache_volume的图表正常工作 。 但是Apache文档服务的图表, Apacheinput/输出(字节) , Apache请求并不显示图中的任何活动。 重要的是,这些不显示任何内容的图表应该显示按虚拟主机划分的数据。 我在Ubuntu 10.04.1 LTS(Lucid Lynx)和munin版本是1.4.4。 有一件事,我认为可能是问题的原因是,我有一个单独的configuration文件,每个虚拟主机,这是包括在主要的configuration。 但我无法弄清楚任何解决办法。 任何帮助将不胜感激!
我无法为其他服务器configurationapache2前端代理,也提供apache2内容。 我的意图是让apache2提供一些静态内容和一些dynamic应用程序,包括域名和作为文档根目录的子文件夹,还提供一些dynamic的应用程序,包括域名和不带域名的代理。 换句话说,我想要做以下事情 http://my.server.edu/ (由“/ Users / me / Sites”的apache2提供) http://my.server.edu/lib (由“/ Users / me / Sites / lib”的apache2提供) http://my.server.edu/app0 (由“/ Users / me / Sites / app0”的apache2提供) http://my.server.edu/app1 (由“Users / me / Docs / www / app1”的Starman提供) http://vapp1.org (由“Users / me / Docs / www / vapp1”的Starman提供) http://vapp1.org/lib (由“/ Users / me / Sites”中的apache2提供) […]
对不起,如果我不够精通,有些人会希望在这里。 我已经在VPS上成功地获得了Apache mod_proxy_ajp和Glassfish 3.1.2的配合。 然而,它是一个Apache httpd服务器通过端口8009连接到Glassfish服务器上的单个域(看起来相当标准)。 我想尝试添加另一个域到Glassfish服务器,稍微不同的代码库支持不同的Apache虚拟服务器,都在同一台机器上。 这是可能的,有人可以给我一些提示或指示,从哪里开始或做什么。 我学会了如何让自己的连接器设置为一个站点,但无法find如何做到这一点。 顺便说一下,这是在VPS上运行。
我最近(今天!),将我的SVN库移动到我自己的服务器。 我有麻烦检查出我的新回购,也更新我目前的工作副本使用我的新回购(这是从我的旧回购svnsync副本),我做到了这一点,通过使用: svn switch –relocate /old/repo/path /new/repo/path 这按预期工作,并抛出一个共同的uuid错误。 我首先得到一个错误svn uuid's dont match ,所以我更新了svn repoconfiguration(repo/db/uuid)的uuid文件以反映旧的uuid 。 这摆脱了那个错误。 下面的一切都是我的问题,我不能做任何与我的新回购(我想改变我的旧工作副本使用我的新回购(我创build,然后svn从我旧的回购同步到新)所以唯一的区别是uuid(我手动更改),版本是完全一样的(没有添加或删除)。 接下来,我尝试检出我的回购的新工作副本: (首先制作新的目录,并尝试检出新的回购): SVN签出错误: # Error after trying to checkout new working copy # 'svn co http://svn.mydomain.com/repo1 .' svn: E175002: Server sent unexpected return value (405 METHOD_NOT_ALLOWED) in response to REPORT request for '/newtbg/!svn/me' SVN错误:(与上面相同的错误) # Error after 'svn […]
鉴于这种configuration: NameVirtualHost *:80 Listen 80 <VirtualHost *:80> ServerName default.example.com </VirtualHost> <VirtualHost *:80> ServerName www.example.net ServerAlias testy.example.net </VirtualHost> <VirtualHost *:80> ServerName www.example.org ServerAlias new.example.org </VirtualHost> 请求www。*按照我的预期提供,.net和.org站点的页面交付。 然而,对于ServerAliases,new.example.org和testy.example.net的请求是从default.example.com 这是在Apache 2.2.22上 / usr / sbin / apache2 -f -S只显示默认服务器…所以挖掘,进一步挖掘
我遵循这个教程 (虽然它是为5.2,我想我会没事的)。 我必须做的改变似乎已经奏效了: 将ca.csr重命名为ca.cslr(这是生成的命令) 在ssl.conf中将其列为ca.cslr而不是ca.csr 我在httpd.conf中有以下内容 <VirtualHost *:80> DocumentRoot /etc/test ServerName site.com </VirtualHost> <VirtualHost *:433> SSLEngine on SSLCertificateFile /etc/pki/tls/certs/ca.crt SSLCertificateKeyFile /etc/pki/tls/private/ca.key <Directory /etc/test> AllowOverride All </Directory> DocumentRoot /etc/test ServerName cryptokings.com </VirtualHost> /test其中包含一个文件夹,可通过http://site.com/test/foo访问,但通过https://site.com/test/foo试图访问它 警告证书不可信(自签名,不要大写) 一个404错误。 Chrome的证书抱怨如下: The identity of this website has not been verified. • Server's certificate does not match the URL. • Server's certificate […]
我已经看到了围绕这个话题的所有其他问题,但没有一个答案已经奏效。 情况:VPS上1 IP,debian wheezy 7用apache2运行。 即使是简单的虚拟主机也不能正常工作,如在网站启用的“www.domain.net”中所述: <VirtualHost *:80> ServerName domain.net ServerAlias www.domain.net DocumentRoot /var/www/domain </VirtualHost> apache2ctl -S的输出: VirtualHost configuration: xx.xx.xxx.xxx:443 is a NameVirtualHost default server xx.domain1.net (/etc/apache2/conf.d/owncloud5-ssl.conf:1) port 443 namevhost xx.domain1.net (/etc/apache2/conf.d/owncloud5-ssl.conf:1) xx.xx.xxx.xxx:80 oc.domain1.net (/etc/apache2/sites-enabled/oc.domain.net:8) wildcard NameVirtualHosts and _default_ servers: *:80 is a NameVirtualHost default server domain1.net (/etc/apache2/sites-enabled/000-default:8) port 80 namevhost domain1.net (/etc/apache2/sites-enabled/000-default:8) port 80 […]
我正在尝试在Ubuntu 12.04上设置apache虚拟主机。 除了我使用/ var / www不是/ home / www之外,我在这里http://www.debian-administration.org/articles/412中遵循了这个指南。 我已将文档根文件夹设置为755权限。 这是一个服务器,我用尽了我的房子,所以它可能是我的路由器可能是一个问题,我想? 我没有使用代理服务器。是否需要设置端口转发的某种方式来运行虚拟主机? (是的,它在vhosts之前工作正常,我得到了502响应错误(坏的网关),这里是我的两个启用的网站 NameVirtualHost *:80 <VirtualHost *:80> ServerName www.functioncreate.com ServerAlias functioncreate.com # Indexes + Directory Root. DirectoryIndex index.html DocumentRoot /var/www/functioncreate/htdocs/ # CGI Directory ScriptAlias /cgi-bin/ /var/www/functioncreate/cgi-bin/ <Location /cgi-bin> Options +ExecCGI </Location> # Logfiles ErrorLog /var/www/fucntioncreate/logs/error.log CustomLog /var/www/functioncreate/logs/access.log combined </VirtualHost> 第二个: # # Example.com (/etc/apache2/sites-available/www.example.com) # […]
我已经购买了一个comodo SSL证书,并已将由我的服务器生成的证书签名请求(CSR)提交给SSLpipe理站点。 With the 3 files it returned me with, – AddTrustExternalCARoot.crt – PositiveSSLCA2.crt – www_example_com.crt 我已经把它们上传到我的/ etc / ssl / ssl-certs文件夹,并且已经在我的网站上更新了我的虚拟主机 – 可用并相应地重新启动。 NameVirtualHost 107.167.120.195:80 #sample ip address NameVirtualHost 107.167.120.195:443 #sample ip address ……… #normal http virtual host (working well) <VirtualHost 107.167.120.195:443> ServerAdmin [email protected] ServerName example.com ServerAlias www.example.com DocumentRoot /var/www/example SSLEngine on SSLCertificateFile /etc/ssl/ssl-certs/www_example_com.crt […]