a2ensite suggest files which do not exist

Bug #1057347 reported by Jan Müller
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
apache2 (Ubuntu)
Confirmed
Medium
Unassigned

Bug Description

Ubuntu 12.04 LTS 64bit
newest updates are installed

If you create a new apache-conf-file in sites-available and you wanna link te conf-file with a2ensite to sites-enabled, the scipt offers you wrong filenames.

>a2ensite <conffile-without-conf-suggested-by-a2ensite-or-bash-completion>
>ERROR: Site <conffile-without-conf-suggested-by-a2ensite-or-bash-completion> does not exist!
-> if you do this with the .conf at the end, everything works fine

The files which are sugested do exist, but they are namend with a .conf at the end. a2ensite gives an error back, if you choose the suggested file-named.

I dunno, if this bug is a2ensite or bash-completion.

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

Thanks for reporting this bug, verified on my precise box.

Changed in apache2 (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

This is done explicitly by _apache2_modsites when it filters its results through 'sed -e 's/[.]conf$//''

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.