我想要做的是添加一个新的域到我的VPS。 所以我给我的httpd.conf添加了一个新域名,并更新了我的注册商的相应域名服务器。
我在httpd.conf文件中使用了这个代码:
<VirtualHost *:80> ServerAdmin emanuel@*****.net DocumentRoot /var/www/example.ro ServerName www.example.ro ServerAlias example.ro ErrorLog /var/www/example.ro/error.log CustomLog /var/www/example.ro/requests.log common <Directory /var/www/example.ro> <IfModule mod_rewrite.c> Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^ index.php [L] </IfModule> </Directory> </VirtualHost>
我等了一天,以确保DNS传播是好的,但似乎这个域没有绑定到任何DNS。 当我尝试ping域名时,得到“Ping请求未find主机example.ro,请检查名称并重试”。
我错过了什么吗? 我是服务器configuration的初学者
如果你的错误信息是“Ping请求找不到主机domain.ro。请检查名称,然后再试一次”错误不在于你的apacheconfiguration。 托pipe您的域名的域名服务器不会报告您域名的任何Alogging(假设您尝试ping的DNS客户端正常工作)。
首先查看您的域的nslookup是否报告任何名称服务器。 如果他们这样做,请看下面的DNS – logging名称服务器报告。 我个人使用的是http://centralops.net ,只要在search字段中input域名,就可以为您提供所有这些信息,也可以绕过任何可能的DNS客户端configuration错误。