Organizational Research By

Surprising Reserch Topic

how to Make sure your Configuration Files Also Handle your Domain Correctly


Make sure your Configuration Files Also Handle your Domain Correctly

If your DNS settings are correct, you may also want to check your Apache virtual host files or the Nginx server block files to make sure they are configured to respond to requests for your domain.

In Apache, the section of your virtual host file might look like this:


    ServerName example.com
    ServerAlias www.example.com
    ServerAdmin admin@example.com
    DocumentRoot /var/www/html
. . .
This virtual host is configured to respond to any requests on port 80 for the domain example.com.

A similar chunk in Nginx might look something like this:

server {
    listen 80 default_server;
    listen [::]:80 default_server ipv6only=on;
    root /usr/share/nginx/html;
    index index.html index.htm;
    server_name example.com www.example.com;
. . .
This block is configured to respond to the same type of request that we discussed above.
asked Aug 29, 2015 in LINUX by rajesh
0 votes
16 views



Related Hot Questions



Government Jobs Opening


...