What I'm trying to do is to add a new domain to my VPS. So I added a new domain to my httpd.conf and updated the corresponding nameservers on my registrar.
I used this code in httpd.conf file:
<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>
I waited a day to make sure that the dns propagation is okay but it seems like the domain is not bound to any dns. When I try to ping the domain name, I get " Ping request cound not find host example.ro. Please check the name and try again ".
Am I missing something? I'm a beginner in server configurations