Jump to content

How deep?


titan21

Recommended Posts

Been tidying up my server setup and I wanted to create a symbolic link so that

 

/etc/apache2/sites-enabled/_external/domain.com/www -> /etc/apache2/sites-available/_external/domain.com/www

 

This doesn't seem to be picked up however and a call to the virtual host I defined just results in going to the default virtual host. Is there a limit to how deep the directory structure can go for sites-enabled?

Link to comment
https://forums.phpfreaks.com/topic/260032-how-deep/
Share on other sites

Reminds me, I totally need to clean up my Apache configuration too :P

 

 

It depends on the Include directive. My Ubuntu 11.10 with Apache 2.2 uses

Include sites-enabled/

which means that Apache scans its files and subdirectories. If it were "sites-enabled/*" then it would only check the files. I just tried sticking a link in three levels deep and it worked fine.

 

Are you sure the symlink is right? Normally they're like "../sites-available/foo", which would break if you simply moved the file somewhere. But Apache should complain if that were the case.

Link to comment
https://forums.phpfreaks.com/topic/260032-how-deep/#findComment-1332851
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.