目前我使用以下服务托pipe我自己的(Ubuntu)服务器:samba,ftp和web服务器。 我已经买了一个域,并将DNS A-record连接到我的ISP的IP。 这工作正常。 现在我想使用DNS通配符logging来创build子域。 我想避免在DNS更改完成之前等待24小时。 因此,我只能将所有传入的通配符redirect到相同的目录: test1.domain.comredirect到/ var / www test2.domain.comredirect到/ var / www 虽然我想得到: test1.domain.comredirect到/ var / www / test1 test2.domain.comredirect到/ var / www / test2 我的猜测是要更改文件/ etc / apache2 / sites-available / domain。 任何帮助或提示将受到欢迎! 谢谢, 标记 编辑: 这是我的/ etc / apache2 / sites-available / domain文件的样子: <VirtualHost *:80> ServerAdmin webmaster@domain DocumentRoot /var/www/webroot <Directory […]
我刚刚在CentOs 6.2服务器上安装了一个webapp(sakai)。 sakai可以通过@ip:8080 / portal访问,我需要用普通的URLreplace这个地址:www.exapmle.com/sakai 我已经取代: #<VirtualHost *:80> # ServerAdmin [email protected] # DocumentRoot /www/docs/dummy-host.example.com # ServerName dummy-host.example.com # ErrorLog logs/dummy-host.example.com-error_log # CustomLog logs/dummy-host.example.com-access_log common #</VirtualHost> 通过 <VirtualHost @ip:80> ServerAdmin webmaster@my_site.com DocumentRoot /var/www/cmcf ServerName my_site.com ErrorLog logs/my_site.com-error_log CustomLog logs/my_site.com-access_log common </VirtualHost> (我也尝试过<VirtualHost @ip:8080>因为我的webapp可以通过@ip:8080 / portal访问,但徒劳无功) 但是当我试图从浏览器达到sakai,我得到了404错误: **Not Found The requested URL /portal was not found on […]
我有这个Windows Server 2003 R2的32位机器运行Apache 2.4.2与OpenSSL 1.0.1c和PHP 5.4.5通过mod_fcgid 2.3.7。 这个configuration在几个小时内工作得很好,但是那个网站不能通过它的域名联系到,比如说www.example.com ,但是它的IP地址仍然可以到达。 特别是,当https://www.example.com/产生连接错误时, http://123.1.2.3/工作得很好。 是的,先https然后http。 错误和访问日志是干净的,即他们没有出现问题的迹象。 只是通常的消息,这是中断的网站无法到达。 经过一番调查,Apache简单的重启解决了这个问题。 不幸的是,我没有机会testinghttps://123.1.2.3/也能正常工作,或者http://www.example.com/仍然像往常一样redirect到https。 那么,有没有人知道发生了什么? 在我厌倦Apache之前,抛弃它,转而赞成Nginx? 编辑:一些日志信息。 sslerror.log的最后一行是在问题发生前的90分钟,所以我猜这不重要。 ssl_request.log显示任何有趣的内容:这些是问题之前的最后两行: [28/Aug/2012:17:47:54 +0200] xxxx TLSv1.1 ECDHE-RSA-AES256-SHA "GET /login HTTP/1.1" 1183 [28/Aug/2012:17:47:45 +0200] yyyy TLSv1 ECDHE-RSA-AES256-SHA "POST /upf HTTP/1.1" 73 以前的几行都是一样的,看起来并不有趣,除了这样的问题之前的30到40秒之外的4行: [28/Aug/2012:17:47:14 +0200] zzzz TLSv1 ECDHE-RSA-AES256-SHA "-" – 这些是来自sslaccess.log的相应的行: zzzz – – [28/Aug/2012:17:47:14 +0200] "-" […]
我试图设置一个位置,我想在同一个Apache服务器上运行一个squirrelmail和Passenger,它有一个指向squirrelmail的url以及一切由乘客处理的东西。 到目前为止,松鼠邮件和乘客都可以自行运行,但当乘客运行时,它会处理所有的 URL。 到目前为止,我已经尝试使用别名和redirect指向一个web邮件/ URL到squirrelmails目录,但是不起作用。 这是我的httpd.conf文件: <VirtualHost *:80> ServerName not.my.real.server.name DocumentRoot /var/www/sinatra/public # Does not work: #Redirect webmail/ /usr/share/squirrelmail/ #<Directory /usr/share/squirrelmail> # Require all granted #</Directory> <Directory /var/www/sinatra/public> Order allow,deny Allow from all </Directory> </VirtualHost> apache2.conf为乘客添加了这些文件,除此之外,我还没有从标准Ubuntu Server 12.04安装apache做任何更改: # passenger config LoadModule passenger_module /home/kenneth/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.15/ext/apache2/mod_passenger.so PassengerRoot /home/kenneth/.rvm/gems/ruby-1.9.3-p194/gems/passenger-3.0.15 PassengerRuby /home/kenneth/.rvm/wrappers/ruby-1.9.3-p194/ruby passanger config.ru文件: require './index' run Sinatra::Application
我在大学连接到局域网,IP地址为172.16.123.12 。 我试图在Apache服务器上部署一个瓶子应用程序,以便整个校园都能看到这个网站。 我已经使用mod_wsgi成功部署了应用程序,但无法在局域网上工作。 它在localhost/flask上正常工作,但我不能访问http://127.0.1.1/flask或http://172.16.123.12/flask上的网站,但是“It works”apache页面可以从http://127.0.1.1和http://172.16.123.12 这里是我的虚拟主机conf的烧瓶网站 – <VirtualHost *:80> ServerName localhost WSGIDaemonProcess flask_test threads=5 WSGIScriptAlias /flask /var/www/flask_test/flask.wsgi ErrorLog "/var/www/flask_test/error.log" CustomLog "/var/www/flask_test/access.log" combined <Directory /var/www/flask_test> WSGIProcessGroup flask_test WSGIApplicationGroup %{GLOBAL} Order deny,allow Allow from all </Directory> </VirtualHost> 主机文件: 127.0.0.1 localhost 127.0.1.1 Linux 我试图改变我的ipaddress ServerName,但无济于事。 有人能让我知道我要去哪里吗? 万分感谢! 从apapch2ctl -S输出 /usr/sbin/apache2ctl: 87: ulimit: error setting limit (Operation not […]
是否可以授予networking访问权限或基于用户组的HTTP访问权限? 在我的公司,我们希望使用Satis来设置一个内部的composer php服务器来pipe理我们编写的项目(比如在repository.mycompany.com上)的软件包,并且在我们的SVN服务器(svn.mycompany.com)中包自己。 我们有几个networking服务器上有许多不同的用户。 有些用户应该能够访问composer php和SVN服务器。 有些人不应该。 应该能够访问这些服务器的用户都属于同一个组。 我如何在Composer和SVN服务器上设置Apache才能授予访问该组中的用户的权限? 或者,我可以如何设置networking服务器,只有该组的用户才能连接到我们的Composer和SVN服务器? 到目前为止我们提出的最好的事情是使用SSL客户端证书。 我们只需在所有可用于访问Composer和SVN的服务器上放置一个客户端证书即可。 只有正确的用户组才具有对证书的读取权限。 有点笨重,但它可能工作。 但是我正在寻找更好的东西。
我试图定义一个mod重写规则应该这样工作:contact.php – > index.php?page = contact 我的htaccess文件有以下内容: RewriteEngine On RewriteBase / RewriteRule ^%1$ index.php?page=%1 [L] 不幸的是,这给了我一个404.任何想法有什么不对? 谢谢
在Ubuntu上使用guest虚拟机,我修改了/etc/apache2/ports.conf来侦听端口8010。 启动mysql和apache2后,我去了http://localhost:8010/bugzilla ,但是我得到了一个404错误。 我认为我的ports.conf设置正确,因为我看到一个404错误, "The requested URL /bugzilla was not found on this server" ,在主机端口8010的本地主机上显示。 请检查我的ports.conf并给我build议。 ports.conf NameVirtualHost *:8010 Listen 8010 #<VirtualHost *:8010> #DocumentRoot /bugzilla ServerName bugzilla ServerAdmin webmaster@localhost # Other directives here #</VirtualHost> <IfModule mod_ssl.c> # If you add NameVirtualHost *:443 here, you will also have to change # the VirtualHost statement in /etc/apache2/sites-available/default-ssl […]
在我的本地主机( http://hotel.local/ )一切正常(Max OSX)。 现在我安装了一台虚拟机,用于在IE8上testing我的应用程序。 事实是,从这个虚拟机,如果我试图打开这个应用程序,它不断要求保存一个PHP文件,而不是打开。 如果我从Chrome尝试,它正常工作。 任何帮助或线索?
我想在Windows 7,64Bit操作系统上安装wamp服务器(以下是确切的安装名称)。 但它永远不会启动,图标保持橙色,这意味着一些服务没有启动。 wampserver2.2e-php5.3.13-httpd2.2.22-mysql5.5.24-x64 我从过去3小时一直在search,但没有find任何解决scheme。 Port 80 is not in use. 在Windows服务中,当我尝试手动启动wampapache服务时,会抛出以下错误: Windows could not start the wampapache service on Local Computer. Error 1053: The service did not respond ot the start or control request in a timely fashion. apache_error.log is empty. 事情使用在Windows XP中正常工作。 可能这是一个重复的线程,但我也经历了类似的post。 但没有任何工作! 请帮忙!!