更新2: 我创build了一个新的“Alogging”,因为我无法获得“cnamelogging”的工作。 我复制了现有的: www – A – server_ip_address 并刚刚创build了一个新的 test – A – server_ip_address 但是当我input host test.oshirowanen.com 它找不到它,但find了 host www.oshirowanen.com perfectly ok. 我是否需要等待新纪录传播互联网? 更新1: 在DNSconfiguration屏幕上,我得到以下选项 Type: (Which has CNAME) Record (Which is a textbox) Domain (Which is a textbox) 原始QUESITON: 如果我已经购买了域名: oshirowanen.com 我想configuration一个子域,指向我的网站,即不同的部分 login.oshirowanen.com 我将不得不购买一个新的域名,即 login.oshirowanen.com ?
我想阻止这样的格式不正确的请求: 79.26.188.208 – – [05/Apr/2011:13:47:38 +0200] "\xae\xe1\x0fi\xca\xeba\xdfm\x9d\xb5\xc0yr-n\x05Z\x9f\xa7\x05\xa1g" 200 4855 "-" "-" 82.51.130.83 – – [05/Apr/2011:18:25:38 +0200] "T\xd0\xc55\xc3A\xcd\xd0" 200 4855 "-" "-" 什么是首选的方法?
在我的WAMP本地主机上,我正在运行两个不同的社交引擎网站,在我的hosts文件中,我添加了两行: 127.0.0.1 site1.com 127.0.0.1 site2.com 在我的apache.conf文件中,我已经为虚拟主机添加了这个代码 <VirtualHost 127.0.0.1> ServerAdmin [email protected] DocumentRoot /wamp/www/se3 ServerName site1.com ServerAlias site1.com ErrorLog logs/site1-error_log CustomLog logs/site1-access_log common </VirtualHost> <VirtualHost 127.0.0.1> ServerAdmin [email protected] DocumentRoot /wamp/www/site2 ServerName site2.com ServerAlias site2.com ErrorLog logs/site2-error_log CustomLog logs/site2-access_log common </VirtualHost> 现在我面对的问题是,当在浏览器上时,我键入site1.com加载site1正确,但是当我键入site2.com加载site1。 我无法找出背后的实际问题。 谁能帮我吗? 🙂
所以我有一天在我的服务器上摆弄,从mods-available文件夹中删除了mod_rewrite,而不是mods-enabled文件夹。 有没有一个地方,我可以下载丢失的文件,以重新安装? 我试过谷歌,但所有的结果只是为了启用mod_rewrite和编写重写规则。 也许我应该尝试这样的: sudo apt-install apache –reinstall ?? 谢谢。 🙂
我的服务器上有电子邮件问题。 几乎所有的电子邮件都停止收到或发送。 我已经尝试使用/usr/sbin/postfix flush mailq,但没有运气。 我认为它与下列奇怪的电子邮件出现在队列中: C24CAEEBD4F* 1047 Mon Apr 11 07:40:01 [email protected] [email protected] 看起来,上面的条目试图从服务器发送一封电子邮件到服务器(XXX-XXX-XX-XX =我的IP)。 当上述项目在mailq中时,队列不会冲洗,也不会收发电子邮件。 我已经放入队列的电子邮件如下所示: 3D30DEEBD97* 3282 Mon Apr 11 07:41:05 [email protected] [email protected] 当队列只包含我已经放入的电子邮件,它工作正常。 我正在使用PHP的梨邮件pipe理我的电子邮件已经运行良好,直到现在。 我也运行Apache 2(CentOS 5.5)。 有没有人知道mailq中的奇怪条目是什么,以及为什么他们在那里? 谢谢, 克里斯。
我很抱歉,如果这是一个愚蠢的问题,但我不能让Ruby on Rails在我的Apache服务器上工作。 我正在使用Phusion Passenger(mod_rails,mod_rack)进行应用程序部署。 这是我的网站的Apacheconfiguration文件中的RoR特定的configuration代码: Alias /rails /var/www/syyborg.com/ruby/blog/public <Directory /var/www/syyborg.com/ruby/blog/public> Options FollowSymLinks AllowOverride None Order Allow,Deny Allow from All </Directory> RailsBaseURI /rails 我再次对这种事情了解甚less, 我从来没有从头开始build立一个服务器。 无论如何,正如你所看到的,我的rails应用程序位于/var/www/syyborg.com/ruby/blog/ 。 我试图从http://[my domain, syyborg.com]/rails访问它。 但是,当我尝试加载该网站时,出现“403 Forbidden”错误。 任何帮助将不胜感激,如果需要,我可以提供进一步的细节。 提前致谢!
新手系统pipe理员在这里, 在我的网站上,用户下载一个50MB的文件。 我想能够知道下载是否已经完成,以便我可以运行一个bash脚本。 我在LAMP堆栈上,发送文件的php代码就像这样… <?php //download.php //content type header('Content-type: application/zip'); header('Content-Length: 46380748'); //open/save dialog box header('Content-Disposition: attachment; filename="file.zip"'); //read from server and write to buffer readfile('file.zip'); ?> 我试过netstat,但似乎无法得到任何地方。 我看到了tcp连接,但无法计算如何跟踪发送的总字节数,以便与文件大小进行比较。 我读过tshark可能会做的伎俩,但这似乎是矫枉过正。 我缺less一些基本的东西吗? 这是我可以用apache监控的东西吗? 我很难… 谢谢。
我正在运行的Apache 2.2,我的服务器运行良好。 注意到这个奇怪的exception在我的access.log文件中,我应该如何防止它? robots.txt似乎没有工作。 127.0.0.1 – – [17/Apr/2011:12:17:00 +0100] "GET / HTTP/1.1" 200 3022 "-" "msnbot/1.1 (+http://search.msn.com/msnbot.htm)" 127.0.0.1 – – [17/Apr/2011:12:17:00 +0100] "GET /icons/blank.gif HTTP/1.1" 200 487 "http://localhost/" "msnbot/1.1 (+http://search.msn.com/msnbot.htm)" 127.0.0.1 – – [17/Apr/2011:12:17:00 +0100] "GET /icons/layout.gif HTTP/1.1" 200 616 "http://localhost/" "msnbot/1.1 (+http://search.msn.com/msnbot.htm)" 127.0.0.1 – – [17/Apr/2011:12:17:00 +0100] "GET /icons/folder.gif HTTP/1.1" 200 564 "http://localhost/" "msnbot/1.1 […]
我们在我们的环境中使用Springsource ERS Apache,关于加强部分即使在使用ServerSignature Off之后,我们仍然在接受 服务器:Apache的头信息。 这怎么可以避免?
我需要帮助将一些Apache .htaccess规则转换为nginx规则。 希望有更多经验的人能帮助我。 这是我的规则: 1 RewriteEngine on RewriteCond %{HTTP_HOST} ^www.url.ba [NC] RewriteRule ^(.*)$ http://url.ba/$1 [R=301,L] RewriteRule ^api\.php /index.php?c=api&m=index&%{QUERY_STRING} [L] RewriteRule ^contact\.php /index.php?c=contact&m=index&%{QUERY_STRING} [L] RewriteRule ^([a-zA-Z0-9]{4,25})$ /index.php?c=api&m=check&hash=$1 [L] RewriteCond $1 !^(index\.php|images|css|script|ZeroClipboard\.swf) RewriteRule ^(.*)$ /index.php/$1 [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+) / [R=301,L] 2 RewriteEngine on RewriteCond %{HTTP_HOST} ^www.img.ba.ba$ [NC] RewriteRule ^(.*)$ http://img.ba/$1 [R=301,L] RewriteCond $1 !(\/protected)$ […]