"ServerName" value in "httpd.conf".

Issues related to configuring your network
Post Reply
hack3rcon
Posts: 697
Joined: 2014/11/24 11:04:37

"ServerName" value in "httpd.conf".

Post by hack3rcon » 2020/09/26 08:11:39

Hello,
Is it possible to use multi values in "ServerName" ?

Code: Select all

<VirtualHost *:80>
    ServerName 1.2.3.4
    Redirect 403 /
    ErrorDocument 403 "Sorry, direct IP access not allowed."
    DocumentRoot /dev/null/
    UseCanonicalName Off
    UserDir disabled
</VirtualHost>

<VirtualHost *:80>
    ServerName 1.2.3.5
    Redirect 403 /
    ErrorDocument 403 "Sorry, direct IP access not allowed."
    DocumentRoot /dev/null/
    UseCanonicalName Off
    UserDir disabled
</VirtualHost>
Can I use two IP addresses in "ServerName"?

Thank you.

Post Reply

Return to “CentOS 8 - Networking Support”