~/newusername/ not accessible

mingmeng

Verified User
Joined
Apr 11, 2017
Messages
29
Hi,

The links for ServerIP/~usrname/ have stopped working. I get

Not Found​

The requested URL was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I expect that I have messed up DNS somehow.

Any ideas about what might be causing this?

Thank you

Neil
 
Worked it out: as usual .. I did it to myself! - but my explanation may assist other less experienced users (like wot i r) - and DA docs writers:)

I am rightfully concerned about my server security so I followed:


17. Disable UserDir Apache ability ( http://12.34.56.78/~username access):

I did this a few days ago, I forgot that I had blindly worked my way through the hardening steps without giving them enough thought regarding consequences.

Clue was in: cat /etc/httpd/conf/extra/httpd-vhosts.conf

UserDir disabled

So problem solved:

cd /usr/local/directadmin/custombuild
./build update
./build set userdir_access yes
./build rewrite_confs

All working as it should.

Possibly a warning note for 17. to warn us dumb ones?

Cheers
Neil
 
Worked it out: as usual .. I did it to myself! - but my explanation may assist other less experienced users (like wot i r) - and DA docs writers:)

I am rightfully concerned about my server security so I followed:


17. Disable UserDir Apache ability ( http://12.34.56.78/~username access):

I did this a few days ago, I forgot that I had blindly worked my way through the hardening steps without giving them enough thought regarding consequences.

Clue was in: cat /etc/httpd/conf/extra/httpd-vhosts.conf

UserDir disabled

So problem solved:

cd /usr/local/directadmin/custombuild
./build update
./build set userdir_access yes
./build rewrite_confs

All working as it should.

Possibly a warning note for 17. to warn us dumb ones?

Cheers
Neil
No you're wrong the real DUMB wouldn't write here the solution, so not so dumb you think you are haha. ;)
 
Also, dumb quetions don't exist. It's only dumb to have questions and don't ask them, because then you won't learn anything. ;)
 
Back
Top