4 alias domains in domain pointer, but I don't want email aliases.

Now you have you answer. Either the symbolic link is not allowed or does not exist.

Can you

Code:
ls -l /home/faride/domains/xxx.eu/public_html/index.php

What happens when you ls the symbolic link?

root@web:~# ls -l /home/faride/domains/xxx.eu/public_html/index.php
lrwxrwxrwx 1 root root 54 Apr 5 00:51 /home/faride/domains/xxx.eu/public_html/index.php -> /home/faride/domains/xxx.lt/public_html/index.php
 
I thought /home/faride/domains/xxx.eu/public_html/index.php was the target but it seems the .lt domain is the target. What about

Code:
ls -l /home/faride/domains/xxx.lt/public_html/index.php
 
the domain .eu has to reach .lt. (.LT domain = main domain)

Result:

root@web:~# ls -l /home/faride/domains/xxx.lt/public_html/index.php
-rw-r--r-- 1 faride faride 405 Jun 19 2023 /home/faride/domains/xxx.lt/public_html/index.php
 
on main domain or on second domain?
I'm just wondering, don't you need to set openbasedir to off too, to be able to do this?
1712424834232.png


Done, but still result the same.
 
I'm just wondering, don't you need to set openbasedir to off too, to be able to do this?

That may be true to too but I know there is a httpd configuration for allowing symlinks. That needs to be done as well.
 
what should be done in it and which domain (main or second) ?
That may be true to too but I know there is a httpd configuration for allowing symlinks. That needs to be done as well.
 
@Toris
I have easy ways to do this via web panel. if domain is on same user.

Go to "Admin -> Server Manager -> custom Httpd Configuration"
Select your second domain and click on "httpd.conf", you will found "Customize" button.

And place this code to first box of input
Code:
|?DOCROOT=`HOME`/domains/xxx.lt/public_html|
|?REALDOCROOT=`HOME`/domains/xxx.lt/public_html

p.s. if you using nginx_apache, you must do same thing on nginx too.
 
@jamgames2 Thank You! It worked!
@Toris
I have easy ways to do this via web panel. if domain is on same user.

Go to "Admin -> Server Manager -> custom Httpd Configuration"
Select your second domain and click on "httpd.conf", you will found "Customize" button.

And place this code to first box of input
Code:
|?DOCROOT=`HOME`/domains/xxx.lt/public_html|
|?REALDOCROOT=`HOME`/domains/xxx.lt/public_html

p.s. if you using nginx_apache, you must do same thing on nginx too.
 
"thank you" for your rude answers. Might im here because there is no information about creating such things..?

Actually I did a Google search and there are over 33000 results. You're welcome. And I will say again you are not an admin because an admin would know how to do proper research. It could be in the main httpd.conf file or the one for the domain or a .htaccess file.

 
"thank you" for your rude answers. Might im here because there is no information about creating such things..?

I tried to help by giving you what to look for. I don't know how to do it either but you expect me to Google it for you and then provide you with the answer. I am not here to hold your hand through the process. I gave you what you needed to do further research just like I would have to do. Wow I am constantly amazed at how people expect us to just do the work for them.
 
"thank you" for your rude answers.
Rude? Nothing rude about it. He admits he doesn't know and suggest the best known next option.
Maybe you don't understand that we don't have a glass ball here and lots of people coming here don't even looked via Google? There is no way of knowing that you have.
 
Rude? Nothing rude about it. He admits he doesn't know and suggest the best known next option.
Maybe you don't understand that we don't have a glass ball here and lots of people coming here don't even looked via Google? There is no way of knowing that you have.

Although I do keep saying that he is not an admin. Maybe that is going overboard. But even new admins start learning by researching. These days research is done through Google or Bing. My research started with actual books.

An admin like this is scary because his server will be hacked soon.
 
@zEitEr could you help?


Hello Toris,

If you want to use symlinks, then you would need

1. Connect as "faride"
2. run something like this:

Code:
cd /home/faride/domains
rm -rf xxx.lt/public_html/
ln -s ../xxx.eu/public_html/ xxx.lt/public_html/

If you run the code as root, then you will need to change an owner of the link. The user owner of a link should match the domain owner. If the owners differ, then the webserver will return a HTTP/403 error.

Changing a document root is a good option. But it might confuse an user when connected over FTP or FileManager of DirectAdmin.
 
Back
Top