i want to one site with ip address

va6893

Verified User
Joined
May 18, 2021
Messages
8
hi . i want to open a site with my in also with domain (default)
I want the domains outside this server to be opened for them by adding a record of this site

(default)
sitename.com

(open sitename.com )
195.532.1.240
 
open site without domain?

you can open site with

before it you must change "use_hostname_for_alias" to yes in custombuild -> edit options tab
 
i want to use directadmin in saas project , i have central domain like "sitename.com" any tenant can define self domain
 
when try this ( x.x.x.x/vahid ) , what is result ?

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.
 
The instructions were not complete. And the url was wrong too.

Try like this:
Code:
cd /usr/local/directadmin/custombuild
./build set userdir_access yes
./build update
./build rewrite_confs

After this you can visit via:
http://x.x.x.x/~vahid
so remember to use the ~ before the username.
 
so it work after add ~ before username .
do i can use this address (x.x.x.x/~vahid) in A record ?
i want to open domain with other domain or subdomain with A record = > x.x.x.x/~vahid
It seems that it does not work!!

my.customedomain.com A x.x.x.x/~vahid
 
use CNAME record, should work fine. right ?

after add this record it return

Cannot Add Record​
Details
You must provide a valid name and value​


cname.png
 
if you want to pointer to self server. Why not use Domain Pointer ?
Also for subdomain just create it their and point to directory that you want.


'A' record and 'CNAME' record not design for "domain.com/subfolder"


just use
CNAME www.sitename.com.
 
Last edited:
so it work after add ~ before username .
Yes, then you can visit the site like that, it's called userdir.

do i can use this address (x.x.x.x/~vahid) in A record ?
No it does not work that way.

Is that "vahid" the username or is it a subdirectory? If it's a subdirectory name you don't use userdir, you can use pointers or subdomain.

Or what @viera said but I don't know how that works, I never used that before.
 
Back
Top