cgi-sys/defaultwebpage.cgi to enter the IP
HI.
First, sorry for my english, I hope you understand.
I am testing a WHM/Cpanel installation on an Amazon EC2 instance for a WordPress Multisite network.
The entire install seemed to go well with activated NAT mode, and Elastic IP associated with the public IP ... The DNS configuration looks correct ...
What I have:
Domain: example.xom.br
Public IP: 54.233.xxx.xx
Private IP: 172.31.xx.xx
ServerName: server.example.com.br
The Wordpress is installed in /home/example/public_html
In WHM created a package and a user to the Default domain and installed WP for this new user.
In the browser when I type example.com.br or any subdomain, works perfectly. But when I type the public IP, opens the error message in cgi-sys/defaultwebpage.cgi
But I need to enter the IP open the site normally, so that the mapping wp multisite function properly.
Configuration file:
How can I do to open the site when you type the IP? I would like to have everything running smoothly before the end of the trial period of WHM / Cpanel to buy the LICENSE safer. Andr" Siqueira
/var/cpanel/userdata/example/example.com.br
customlog:
-
format: combined
target: /usr/local/apache/domlogs/example.com.br
-
format: "\"%{%s}t %I .\\n%{%s}t %O .\""
target: /usr/local/apache/domlogs/example.com.br-bytes_log
documentroot: /home/example/public_html
group: example
hascgi: 1
homedir: /home/example/public_html
ifmodulealiasmodule:
scriptalias:
-
path: /home/example/public_html/cgi-bin/
url: /cgi_bin/
ifmoduleincludemodule:
directoryhomeexamplepublichtml: {}
ifmodulelogconfigmodule:
ifmodulelogiomodule:
customlog:
-
format: "\"%{%s}t %I .\\n%{%s}t %O .\""
target: /usr/local/apache/domlogs/example.com.br-bytes_log
ifmodulemodincludec:
directoryhomeexamplepublichtml: {}
ifmodulemodsuphpc:
group: example
ifmoduleuserdirmodule:
ifmodulempmitkc:
ifmoduleruidmodule: {}
ip: 172.31.xx.xx
owner: root
phpopenbasedirprotect: 1
port: 80
scriptalias:
-
path: /home/example/public_html/cgi-bin
url: /cgi-bin/
-
path: /home/example/public_html/cgi-bin/
url: /cgi-bin/
serveradmin: webmaster@example.com.br
serveralias: www.example.com.br
servername: example.com.br
usecanonicalname: 'Off'
user: example
userdirprotect: ''
/usr/local/apache/conf/httpd.conf
Listen 0.0.0.0:80
ServerName 172.31.xx.xx
DocumentRoot /usr/local/apache/htdocs
ServerAdmin someuser @hotmail.com
suPHP_UserGroup nobody nobody
# Default vhost for unbound IPs
ServerName server.example.com.br
DocumentRoot /usr/local/apache/htdocs
ServerAdmin someuser @hotmail.com
suPHP_UserGroup nobody nobody
ServerName example.com.br
ServerAlias www.example.com.br
DocumentRoot /home/example/public_html
ServerAdmin webmaster@example.com.br
UseCanonicalName Off
...
_________________________________
How can I do to open the site when you type the IP? I would like to have everything running smoothly before the end of the trial period of WHM / Cpanel to buy the LICENSE safer. Andr" Siqueira
-
Howdy, You'll need to use a non-elastic public IP address. You could remove the cpnat file and rebuild the nat file. 1:1 NAT - Documentation - cPanel Documentation has more information. Thanks! 0 -
I removed the Elastic IP and redid the NAT but problem remains the same. To my initial setup I used Elastic IP I followed: How to Build a Hosting Environment on Amazon AWS - cPanel Knowledge Base - cPanel Documentation Do any way you can manually add for my main IP open the WP installation folder? Thank you for your help 0 -
In the browser when I type example.com.br or any subdomain, works perfectly. But when I type the public IP, opens the error message in cgi-sys/defaultwebpage.cgi
Hello :) Are you able to assign a dedicated IP address to the account via the "WHM Home " Account Functions " Change Site"s IP Address" option? Thank you.0
Please sign in to leave a comment.
Comments
3 comments