Create a domain pointer but keep the email functionality

jdominick

Verified User
Joined
Jul 19, 2012
Messages
6
Hi,

I am using a specific script which requires the server to work with DNS.
Depending on the url the script is accessed by is the right content shown.

The developers recommended me to use Domain Pointers but then I loose my email functionality, but when I created a user (and domain) I wans't sure how to fill in the DNS, can you help me?

Both the user of the to-be-redirected account as the redirect-to-website are on the same server with the same IP. Or do you recommend an extra IP?
 
Your better to just add it as a regular domain and create an index.php or index.html redirect. You can just put the following code in index.php in the public_html folder and it can redirect to whatever website you want. It would be the same as what a domain pointer would do. There is also other ways to do redirects with .htaccess files.

Code:
<?php header('Location: http://www.google.com'); ?>
 
Your better to just add it as a regular domain and create an index.php or index.html redirect. You can just put the following code in index.php in the public_html folder and it can redirect to whatever website you want. It would be the same as what a domain pointer would do. There is also other ways to do redirects with .htaccess files.

Code:
<?php header('Location: http://www.google.com'); ?>

But then the script doesnt display the proper content,
The script manages domains including the one it's installed on, when using DNS it will display the content of the original website (pointer) instead of the one linked to that url.

When I manually redirect it displays the main content.
 
Yeah a domain pointer is probably just using an apache alias so it knows what domain you came in on. You would probably have to make a more sophisticated script that passes in what url you came from. To have email on directadmin it must be setup as a regular domain though.
 
Yeah a domain pointer is probably just using an apache alias so it knows what domain you came in on. You would probably have to make a more sophisticated script that passes in what url you came from. To have email on directadmin it must be setup as a regular domain though.

I was afraid of that yes, thanks anyways.
 
I was afraid of that yes, thanks anyways.

I found something on the Plesk forum which might also be applicable for Directadmin.
They say to create a full user and change the vhost file to point the document root to the source to alias.

Do you think this will work for DA?
 
Why don't you symlink public_html directories? That will help you to have emails for every domain and shared code for all the sites?
 
Why don't you symlink public_html directories? That will help you to have emails for every domain and shared code for all the sites?

I created a symlink but get the 403 error when I go to the website,
When I try to access it via FTP it says it cannot find the directory,
Like you said this is probably a permission problem since the domains are on different users, do you recommend everything on 1 user or do you recommend changing the permission settings?
 
If you want to give your user an opportunity to create subdomains, then you should NOT host their domains under one account. If you are the only person who will have access into directadmin, and you will create email boxes and FTP accounts, subdomains, then you can host all the domains under one accounts, and that's OK since all of your domains will point to one directory.
 
Back
Top