Results 1 to 11 of 11
-
10-31-2014, 06:03 PM #1Web Hosting Master
- Join Date
- May 2009
- Location
- Greece
- Posts
- 1,047
Preview site using ip/~user not working
Hi
I just upload a index.php and one file.html with simple valid code to test using the ip before change the nameservers like this:
Code:http://123.456.789.000/~userx (userx is the cpanel account name)
Code:http://123.456.789.000/~userx/file.html
Code:404 Not Found The server can not find the requested page: 123.456.789.000/~userx (port 80)
Thanks
-
10-31-2014, 06:05 PM #2Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- 127.0.0.0
- Posts
- 380
Hi,
Is this a cPanel server ?
Seems like mod_userdir Protection is in placeYour Hosting Partner of Choice
...everything stored in NVMe
-
10-31-2014, 06:08 PM #3Web Hosting Master
- Join Date
- May 2009
- Location
- Greece
- Posts
- 1,047
Yes it is cpanel on VPS....
-
10-31-2014, 06:20 PM #4Aspiring Evangelist
- Join Date
- Dec 2011
- Location
- 127.0.0.0
- Posts
- 380
Then you just need to disable the mod_userdir protection if you want the ~ to work.
Go to WHM - Security Center -> Apache mod_userdir Tweak (disable and you are good to go)
Keep in mind that with mod_userdir off you may have users trying to steal your BandwidthYour Hosting Partner of Choice
...everything stored in NVMe
-
10-31-2014, 06:24 PM #5Web Hosting Master
- Join Date
- May 2009
- Location
- Greece
- Posts
- 1,047
mod_userdir Protection is not enabled ...
Any other solution?
When i try to rebuild i am getting also this error that i smaybe related:
Code:[[error] [client 123.456.789.000] File does not exist: /usr/local/apache/htdocs/~userx
-
10-31-2014, 07:02 PM #6Web Hosting Master
- Join Date
- Jan 2003
- Location
- SLC
- Posts
- 2,278
is mod_ruid2 installed ?
-
10-31-2014, 07:14 PM #7Web Hosting Master
- Join Date
- May 2009
- Location
- Greece
- Posts
- 1,047
Default PHP Version (.php files) 5
PHP 5 Handler fcgi
Apache suEXEC off
Apache Ruid2 off
I can't preview a simple index.html file
-
10-31-2014, 07:24 PM #8Web Hosting Master
- Join Date
- May 2009
- Location
- Greece
- Posts
- 1,047
Ok i got it working for the index.html
But when i try to load a simple hello word php script is not running and i am getting this:
Code:Service Temporarily Unavailable The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-
10-31-2014, 07:51 PM #9Web Hosting Master
- Join Date
- May 2009
- Location
- Greece
- Posts
- 1,047
Ok now is working thanks all of you
-
10-31-2014, 09:51 PM #10
-
11-01-2014, 12:15 AM #11Web Hosting Master
- Join Date
- May 2009
- Location
- Greece
- Posts
- 1,047
I am sorry
Something was wrong with this edit:
Go to WHM - Security Center -> Apache mod_userdir Tweak (disable and you are good to go)
I did it for second time and then works.
Similar Threads
-
Site preview on Nginx
By sh4ka in forum Hosting Security and TechnologyReplies: 2Last Post: 11-09-2013, 08:28 AM -
site preview not loading
By Mike006 in forum Hosting Security and TechnologyReplies: 1Last Post: 04-19-2005, 12:49 AM -
Site preview. C&C please
By DimitryVC in forum Web Site ReviewsReplies: 20Last Post: 02-05-2004, 04:24 PM -
New Site Preview - Comments Please
By Vortex-Steve in forum Web Site ReviewsReplies: 12Last Post: 08-23-2003, 06:42 AM -
Offline site preview
By MGCJerry in forum Web Site ReviewsReplies: 7Last Post: 01-31-2002, 05:40 AM