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
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
Share on other sites

Checked the symlink and it ain't broken. Had a thought tho and it seemed to work. I had a directory called "_external". Renaming this to "external" seemed to fix it! Anyone know why Apache don't like directories beginning with an underscore?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.