Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 76713 - Apache syntax not working on a few directories
Summary: Apache syntax not working on a few directories
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Vim Maintainers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2005-01-04 18:50 UTC by Lance Albertson (RETIRED)
Modified: 2005-01-21 14:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lance Albertson (RETIRED) gentoo-dev 2005-01-04 18:50:45 UTC
I've noticed a few issues when I've been working on apache config files lately. It seems the path it uses to say "hey, this is an apache config file" isn't working for a few directories.

I added this to my vimrc file and it seems to work fine:

au! BufRead,BufNewFile /etc/apache2/conf/*/* set filetype=apache

The problem is, our apache maintainers/apache authors have moved where some of the config files are for apache2 so that may mess up how you have it setup.
Comment 1 Ciaran McCreesh 2005-01-04 18:58:51 UTC
Hrm, filetype.vim uses this currently:

" Apache config file
au BufNewFile,BufRead httpd.conf*,srm.conf*,access.conf*,.htaccess,apache.conf* setf apache

I'll add in an extra ftdetect file in the next vim-core release.
Comment 2 Lance Albertson (RETIRED) gentoo-dev 2005-01-04 19:08:41 UTC
I generally create other .conf files in /etc/apache2/conf/vhosts/ plus, there's modular config files in /etc/apache2/conf/modules.d/. Thanks for updating that!
Comment 3 Ciaran McCreesh 2005-01-21 14:20:48 UTC
Done, 6.3-r4.