Control Web Panel
WebPanel => CentOS 7 Problems => Topic started by: ohad on February 20, 2018, 07:21:59 PM
-
Hi,
I installed new server. I open a new user and create some files in public_html directory.
I tried to go to http://ip/~user and it is working fine.
I created a new user, but now when I try to go to his website via http://ip/~user2 I got 404 error.
My server is running on Amazon, I activated the NAT Local IP configuration and rebuild the Apache vHosts' but still got this error.
Please help me to solve it.
Thank you !
-
Hi,
Still need help :\
-
I created a new user, but now when I try to go to his website via http://ip/~user2 I got 404 error.
My server is running on Amazon, I activated the NAT Local IP configuration and rebuild the Apache vHosts' but still got this error.
On my Host, also using NAT, it is not allowed to use the IP, I got this feedback from support:
Port 80 can be opened using a reverse proxy approach. You will need to provide your domain name if you want it opened.
-
Edit your hosts file and add the following line
SERVER_IP_ADDRESS YOUR_DOMAIN_NAME
If you are using Windows you can find it here: C:\Windows\System32\drivers\etc
You have to open it as administrator.
When finished don't forget to delete the above line from your hosts file.