markus
Verified User
When a new user/domain is created and attached to a shared IP, I believe it reports a bad reference to access the user website before his/her domain resolves. I mean this message:
Use |ip|/~|username| to access it until the domain resolves.
As an example, say this is our scenario (pretty common I believe):
- The server's main IP is 192.168.0.10
- The server's hostname is server.example.com
- The new username is john
- The new domain is johndomain.com
- johndomain.com has been assigned a shared IP, say 192.168.0.20
- IP 192.168.0.20 already contains several websites. No doubt, it's shared.
So, the welcome message for john is generated like this:
Use 192.168.0.20/~john to access it until the domain resolves.
However, this results in a 404 http error. Well, I've noticed this today. I believe the correct reference should be:
Use 192.168.0.10/~john to access it until the domain resolves.
or
Use server.example.com/~john to access it until the domain resolves.
I'm wondering if there's a template variable or something to use instead of |ip| to generate the correct reference. Maybe something like this?
Use |serverhostname|/~|username| to access it until the domain resolves.
Has anyone else seen this? Is it a bug in DA or... something strange in my apache configuration?
References:
a) I believe this welcome message is generated from this file:
/usr/local/directadmin/data/users/admin/u_welcome.txt
b) The same problem affects the welcome message for resellers:
/usr/local/directadmin/data/admin/r_welcome.txt
Use |ip|/~|username| to access it until the domain resolves.
As an example, say this is our scenario (pretty common I believe):
- The server's main IP is 192.168.0.10
- The server's hostname is server.example.com
- The new username is john
- The new domain is johndomain.com
- johndomain.com has been assigned a shared IP, say 192.168.0.20
- IP 192.168.0.20 already contains several websites. No doubt, it's shared.
So, the welcome message for john is generated like this:
Use 192.168.0.20/~john to access it until the domain resolves.
However, this results in a 404 http error. Well, I've noticed this today. I believe the correct reference should be:
Use 192.168.0.10/~john to access it until the domain resolves.
or
Use server.example.com/~john to access it until the domain resolves.
I'm wondering if there's a template variable or something to use instead of |ip| to generate the correct reference. Maybe something like this?
Use |serverhostname|/~|username| to access it until the domain resolves.
Has anyone else seen this? Is it a bug in DA or... something strange in my apache configuration?
References:
a) I believe this welcome message is generated from this file:
/usr/local/directadmin/data/users/admin/u_welcome.txt
b) The same problem affects the welcome message for resellers:
/usr/local/directadmin/data/admin/r_welcome.txt
Last edited: