Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: ohad on February 20, 2018, 07:21:59 PM

Title: Can't see users website via http://ip/~user
Post 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 !
Title: Re: Can't see users website via http://ip/~user
Post by: ohad on February 22, 2018, 01:12:26 PM
Hi,

Still need help :\
Title: Re: Can't see users website via http://ip/~user
Post by: Jason on February 25, 2018, 07:32:55 PM

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.
Title: Re: Can't see users website via http://ip/~user
Post by: vtheod on April 13, 2018, 08:10:09 PM
Edit your hosts file and add the following line

Code: [Select]
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.