MrBertie / taskpaperplus

A quick simple lightweight wiki-style task manager. All your tasks in plain text.
MIT License
66 stars 10 forks source link

The icons folder conflicts with the default apache alias #1

Closed anjinkristou closed 11 years ago

anjinkristou commented 11 years ago

The icons folder conflicts with the default apache alias. I would recommend to change the name to images or something else.

MrBertie commented 11 years ago

I'm running 3 default Apache servers with Taskpaper and have never heard of or had this problem. Allow me to do some research before I begin changing my folder names or source code, and I'll get back to you.

On 12 March 2013 02:24, Mehrez Kristou notifications@github.com wrote:

The icons folder conflicts with the default apache alias. I would recommend to change the name to images or something else.

— Reply to this email directly or view it on GitHubhttps://github.com/MrBertie/taskpaperplus/issues/1 .

MrBertie commented 11 years ago

Is this the problem you are having?


Apache and icons directory Posted March 28th, 2010 in Apache

Default installations of Apache usually alias /icons to Apache's icons directory which cannot be overridden in an .htaccess file. If you do not control the Apache configuration of a server, and for maximum compatibility, it is always best to never have an /icons directory at a website's root level.

Example default configuration

On a Debian box, for example, the following is defined at /etc/apache2/mods-available/alias.conf: Alias /icons/ "/usr/share/apache2/icons/"

If you control the server you could easily enough disable this alias, or change it to something else. The alias directive cannot be changed in a .htaccess file so if you do not control the server you will not be able to change it.

As I mentioned in the opening paragraph it's better for compatibility purposes to assume you can never change this so if you have to move your website to another server you don't have issues.

The solution

I ran into this issue the other day when I decided on a new website to put the icons I was using for some admin pages into a directory called /icons at the website's root level. Of course, I ended up without the icons displaying and a bunch of 404 errors in my log file like this: File does not exist: /usr/share/apache2/icons/myicon.png

The best solution is to either put your icons directory into a subdirectory, or give it a different name if it's at the root level. In my case I moved it so it was a subdirectory of /images.


From what I can see are you using Taskpaperplus in the web root folder. I always run it in a separate Taskpaper subfolder, so have never experienced this problem.

What are your thoughts?

Symon

anjinkristou commented 11 years ago

Yes, I faced this problem when I deployed the app on my apache2 on Ubuntu 10.11

anjinkristou commented 11 years ago

I think it would be better to change the name of the folder as it is similar to default one. The change will not cost a regression I think. These were my two cents.

MrBertie commented 11 years ago

const and regression?

On 9 April 2013 10:20, Mehrez Kristou notifications@github.com wrote:

I think it would be better to change the name of the folder as it is similar to default one. The change will not const and regression I think. These were my two cents.

— Reply to this email directly or view it on GitHubhttps://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16097902 .

anjinkristou commented 11 years ago

Sorry. I wanted to say. It will not cost a regression.

On 2013/04/09, at 17:25, MrBertie notifications@github.com wrote:

const and regression?

On 9 April 2013 10:20, Mehrez Kristou notifications@github.com wrote:

I think it would be better to change the name of the folder as it is similar to default one. The change will not const and regression I think. These were my two cents.

\ Reply to this email directly or view it on GitHubhttps://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16097902 .

\ Reply to this email directly or view it on GitHub.

MrBertie commented 11 years ago

Okay, I shall see what I can do... watch for a new GitHub push in the coming days

Symon

On 9 April 2013 14:17, Mehrez Kristou notifications@github.com wrote:

Sorry. I wanted to say. It will not cost a regression.

On 2013/04/09, at 17:25, MrBertie notifications@github.com wrote:

const and regression?

On 9 April 2013 10:20, Mehrez Kristou notifications@github.com wrote:

I think it would be better to change the name of the folder as it is similar to default one. The change will not const and regression I think. These were my two cents.

\ Reply to this email directly or view it on GitHub< https://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16097902> .

\ Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16106853 .

anjinkristou commented 11 years ago

Thank you.  — Sent from Mailbox for iPhone

On Tue, Apr 9, 2013 at 9:57 PM, MrBertie notifications@github.com wrote:

Okay, I shall see what I can do... watch for a new GitHub push in the coming days Symon On 9 April 2013 14:17, Mehrez Kristou notifications@github.com wrote:

Sorry. I wanted to say. It will not cost a regression.

On 2013/04/09, at 17:25, MrBertie notifications@github.com wrote:

const and regression?

On 9 April 2013 10:20, Mehrez Kristou notifications@github.com wrote:

I think it would be better to change the name of the folder as it is similar to default one. The change will not const and regression I think. These were my two cents.

\ Reply to this email directly or view it on GitHub< https://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16097902> .

\ Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16106853 .


Reply to this email directly or view it on GitHub: https://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16110728

MrBertie commented 11 years ago

Done!

anjinkristou commented 11 years ago

Thank you very much. Keep the great work.

On 2013/04/11, at 3:37, MrBertie notifications@github.com wrote:

Done!

\ Reply to this email directly or view it on GitHub.

MrBertie commented 11 years ago

You are welcome. There is an updated help file too explaining how to use the program. Symon Le 11 avr. 2013 15:46, "Mehrez Kristou" notifications@github.com a écrit :

Thank you very much. Keep the great work.

On 2013/04/11, at 3:37, MrBertie notifications@github.com wrote:

Done!

\ Reply to this email directly or view it on GitHub.

— Reply to this email directly or view it on GitHubhttps://github.com/MrBertie/taskpaperplus/issues/1#issuecomment-16232092 .