Administrative right

lifeofzion00

New member
Joined
Nov 23, 2023
Messages
4
Hello,

Please how do I give administrative right to my domain for me to open my site with the ip?
 
Normally it's opened with the domain name. With ip it can give issues because of the paths.

However, you can do it, depends on what you want to do.
Do you want to visit it like this:
http://ip.ad.re.ss/~username
or do you want that somebody puts in the ip in the browser and then he can see several files present?

These are both possible but are different solutions.
 
So if you want it like that, why do you have Directadmin?
You could do like http://domain.com/file.php or http://ip.ad.re.ss/~accountname/file.php but what you want is not possible in a decent way.

Only in a very unsafe way (as far as I know) which I do not advise. It would mean using the /var/www/html directory and removing the index file from there and then creating a .htaccess with some content which would make the directory usable that way, but it would also directly make other things in their directly visible like phpmyadmin and webmail.
I'm not going to provide solutions for that, sorry.

Maybe somebody else has a smart idea for a better way to do this, if even possible with DA.

If you want something like that you can best not use Directadmin but setup a webserver yourself, much better.
 
Sure.

Login to your server via SSH and issue these commands:
Code:
cd /usr/local/directadmin/custombuild
./build set userdir_access yes
./build rewrite_confs

If you need files shown in there like somename.mp3 and filename.txt and such, you need to create a .htaccess (mind the dot in front) file in the public_html and enter this line:
Options -Indexes

This is for Apache. I don't do nGinx or (O)LS so I don't know if that will work there too.
 
Back
Top