1
0
mirror of https://github.com/oupala/apaxy.git synced 2025-08-10 02:26:31 +02:00

fix: remove the leading slash before {FOLDERNAME}

Remove the leading slash before {FOLDERNAME} so that apaxy can be 
installed at the web root level.
This commit is contained in:
oupala
2019-05-07 18:06:47 +02:00
parent 4b3d4b80ef
commit 17475e12e0
9 changed files with 69 additions and 69 deletions

View File

@@ -54,7 +54,7 @@ Let's assume you have a folder named `share` in your server root directory (the
So... So...
```ApacheConf ```ApacheConf
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif AddIcon {FOLDERNAME}/theme/icons/gif.png .gif
``` ```
Should be changed to... Should be changed to...
@@ -68,7 +68,7 @@ AddIcon /share/theme/icons/gif.png .gif
So... So...
```html ```html
<script src=/{FOLDERNAME}/theme/apaxy.js></script> <script src={FOLDERNAME}/theme/apaxy.js></script>
``` ```
Should be changed to... Should be changed to...
@@ -100,10 +100,10 @@ Edit these as you would any other HTML or CSS file.
Adding your own icons is a little more involved. You'll need to edit the main Apaxy `.htaccess` file. Look for the following as an example: Adding your own icons is a little more involved. You'll need to edit the main Apaxy `.htaccess` file. Look for the following as an example:
```ApacheConf ```ApacheConf
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif AddIcon {FOLDERNAME}/theme/icons/gif.png .gif
``` ```
The above rule will assign an icon named `gif.png` from the directory `/{FOLDERNAME}/theme/icons/` to any file with the `.gif` extension. The above rule will assign an icon named `gif.png` from the directory `{FOLDERNAME}/theme/icons/` to any file with the `.gif` extension.
This URL path is relative to your site's root. This URL path is relative to your site's root.

View File

@@ -29,76 +29,76 @@ IndexIgnore .htaccess /theme
# AddIcon /share/theme/icons/blank.png ^^BLANKICON^^ # AddIcon /share/theme/icons/blank.png ^^BLANKICON^^
# #
AddIcon /{FOLDERNAME}/theme/icons/blank.png ^^BLANKICON^^ AddIcon {FOLDERNAME}/theme/icons/blank.png ^^BLANKICON^^
AddIcon /{FOLDERNAME}/theme/icons/folder.png ^^DIRECTORY^^ AddIcon {FOLDERNAME}/theme/icons/folder.png ^^DIRECTORY^^
AddIcon /{FOLDERNAME}/theme/icons/folder-home.png .. AddIcon {FOLDERNAME}/theme/icons/folder-home.png ..
AddIconByType (TXT,/{FOLDERNAME}/theme/icons/text.png) text/* AddIconByType (TXT,{FOLDERNAME}/theme/icons/text.png) text/*
AddIconByType (IMG,/{FOLDERNAME}/theme/icons/image.png) image/* AddIconByType (IMG,{FOLDERNAME}/theme/icons/image.png) image/*
AddIconByType (SND,/{FOLDERNAME}/theme/icons/audio.png) audio/* AddIconByType (SND,{FOLDERNAME}/theme/icons/audio.png) audio/*
AddIconByType (VID,/{FOLDERNAME}/theme/icons/video.png) video/* AddIconByType (VID,{FOLDERNAME}/theme/icons/video.png) video/*
# #
# EXTENSION SPECIFIC ICONS # EXTENSION SPECIFIC ICONS
# #
AddIcon /{FOLDERNAME}/theme/icons/archive.png .7z .bz2 .cab .gz .tar AddIcon {FOLDERNAME}/theme/icons/archive.png .7z .bz2 .cab .gz .tar
AddIcon /{FOLDERNAME}/theme/icons/audio.png .aac .aif .aifc .aiff .ape .au .flac .iff .m4a .mid .mp3 .mpa .ra .wav .wma .f4a .f4b .oga .ogg .xm .it .s3m .mod AddIcon {FOLDERNAME}/theme/icons/audio.png .aac .aif .aifc .aiff .ape .au .flac .iff .m4a .mid .mp3 .mpa .ra .wav .wma .f4a .f4b .oga .ogg .xm .it .s3m .mod
AddIcon /{FOLDERNAME}/theme/icons/bin.png .bin .hex AddIcon {FOLDERNAME}/theme/icons/bin.png .bin .hex
AddIcon /{FOLDERNAME}/theme/icons/bmp.png .bmp AddIcon {FOLDERNAME}/theme/icons/bmp.png .bmp
AddIcon /{FOLDERNAME}/theme/icons/c.png .c AddIcon {FOLDERNAME}/theme/icons/c.png .c
AddIcon /{FOLDERNAME}/theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv AddIcon {FOLDERNAME}/theme/icons/calc.png .xlsx .xlsm .xltx .xltm .xlam .xlr .xls .csv
AddIcon /{FOLDERNAME}/theme/icons/cd.png .iso AddIcon {FOLDERNAME}/theme/icons/cd.png .iso
AddIcon /{FOLDERNAME}/theme/icons/cpp.png .cpp AddIcon {FOLDERNAME}/theme/icons/cpp.png .cpp
AddIcon /{FOLDERNAME}/theme/icons/css.png .css .sass .scss AddIcon {FOLDERNAME}/theme/icons/css.png .css .sass .scss
AddIcon /{FOLDERNAME}/theme/icons/deb.png .deb AddIcon {FOLDERNAME}/theme/icons/deb.png .deb
AddIcon /{FOLDERNAME}/theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps AddIcon {FOLDERNAME}/theme/icons/doc.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps
AddIcon /{FOLDERNAME}/theme/icons/draw.png .svg .svgz AddIcon {FOLDERNAME}/theme/icons/draw.png .svg .svgz
AddIcon /{FOLDERNAME}/theme/icons/eps.png .ai .eps AddIcon {FOLDERNAME}/theme/icons/eps.png .ai .eps
AddIcon /{FOLDERNAME}/theme/icons/exe.png .exe AddIcon {FOLDERNAME}/theme/icons/exe.png .exe
AddIcon /{FOLDERNAME}/theme/icons/gif.png .gif AddIcon {FOLDERNAME}/theme/icons/gif.png .gif
AddIcon /{FOLDERNAME}/theme/icons/h.png .h AddIcon {FOLDERNAME}/theme/icons/h.png .h
AddIcon /{FOLDERNAME}/theme/icons/html.png .html .xhtml .shtml .htm .URL .url AddIcon {FOLDERNAME}/theme/icons/html.png .html .xhtml .shtml .htm .URL .url
AddIcon /{FOLDERNAME}/theme/icons/ico.png .ico AddIcon {FOLDERNAME}/theme/icons/ico.png .ico
AddIcon /{FOLDERNAME}/theme/icons/java.png .jar AddIcon {FOLDERNAME}/theme/icons/java.png .jar
AddIcon /{FOLDERNAME}/theme/icons/jpg.png .jpg .jpeg .jpe AddIcon {FOLDERNAME}/theme/icons/jpg.png .jpg .jpeg .jpe
AddIcon /{FOLDERNAME}/theme/icons/js.png .js .json AddIcon {FOLDERNAME}/theme/icons/js.png .js .json
AddIcon /{FOLDERNAME}/theme/icons/markdown.png .md AddIcon {FOLDERNAME}/theme/icons/markdown.png .md
AddIcon /{FOLDERNAME}/theme/icons/package.png .pkg .dmg AddIcon {FOLDERNAME}/theme/icons/package.png .pkg .dmg
AddIcon /{FOLDERNAME}/theme/icons/pdf.png .pdf AddIcon {FOLDERNAME}/theme/icons/pdf.png .pdf
AddIcon /{FOLDERNAME}/theme/icons/php.png .php .phtml AddIcon {FOLDERNAME}/theme/icons/php.png .php .phtml
AddIcon /{FOLDERNAME}/theme/icons/playlist.png .m3u .m3u8 .pls .pls8 AddIcon {FOLDERNAME}/theme/icons/playlist.png .m3u .m3u8 .pls .pls8
AddIcon /{FOLDERNAME}/theme/icons/png.png .png AddIcon {FOLDERNAME}/theme/icons/png.png .png
AddIcon /{FOLDERNAME}/theme/icons/ps.png .ps AddIcon {FOLDERNAME}/theme/icons/ps.png .ps
AddIcon /{FOLDERNAME}/theme/icons/psd.png .psd AddIcon {FOLDERNAME}/theme/icons/psd.png .psd
AddIcon /{FOLDERNAME}/theme/icons/py.png .py AddIcon {FOLDERNAME}/theme/icons/py.png .py
AddIcon /{FOLDERNAME}/theme/icons/rar.png .rar AddIcon {FOLDERNAME}/theme/icons/rar.png .rar
AddIcon /{FOLDERNAME}/theme/icons/rb.png .rb AddIcon {FOLDERNAME}/theme/icons/rb.png .rb
AddIcon /{FOLDERNAME}/theme/icons/rpm.png .rpm AddIcon {FOLDERNAME}/theme/icons/rpm.png .rpm
AddIcon /{FOLDERNAME}/theme/icons/rss.png .rss AddIcon {FOLDERNAME}/theme/icons/rss.png .rss
AddIcon /{FOLDERNAME}/theme/icons/script.png .bat .cmd .sh AddIcon {FOLDERNAME}/theme/icons/script.png .bat .cmd .sh
AddIcon /{FOLDERNAME}/theme/icons/sql.png .sql AddIcon {FOLDERNAME}/theme/icons/sql.png .sql
AddIcon /{FOLDERNAME}/theme/icons/tiff.png .tiff .tif AddIcon {FOLDERNAME}/theme/icons/tiff.png .tiff .tif
AddIcon /{FOLDERNAME}/theme/icons/text.png .txt .nfo .epub .mobi .azw AddIcon {FOLDERNAME}/theme/icons/text.png .txt .nfo .epub .mobi .azw
AddIcon /{FOLDERNAME}/theme/icons/video.png .asf .asx .avi .flv .mkv .mov .mp4 .mpg .rm .srt .swf .vob .wmv .m4v .f4v .f4p .ogv AddIcon {FOLDERNAME}/theme/icons/video.png .asf .asx .avi .flv .mkv .mov .mp4 .mpg .rm .srt .swf .vob .wmv .m4v .f4v .f4p .ogv
AddIcon /{FOLDERNAME}/theme/icons/xml.png .xml AddIcon {FOLDERNAME}/theme/icons/xml.png .xml
AddIcon /{FOLDERNAME}/theme/icons/zip.png .zip AddIcon {FOLDERNAME}/theme/icons/zip.png .zip
DefaultIcon /{FOLDERNAME}/theme/icons/default.png DefaultIcon {FOLDERNAME}/theme/icons/default.png
# #
# THEME FILES # THEME FILES
# #
HeaderName /{FOLDERNAME}/theme/header.html HeaderName {FOLDERNAME}/theme/header.html
ReadmeName /{FOLDERNAME}/theme/footer.html ReadmeName {FOLDERNAME}/theme/footer.html
IndexStyleSheet "/{FOLDERNAME}/theme/style.css" IndexStyleSheet "{FOLDERNAME}/theme/style.css"
# #
# ERROR PAGES # ERROR PAGES
# #
ErrorDocument 400 /{FOLDERNAME}/theme/400.html ErrorDocument 400 {FOLDERNAME}/theme/400.html
ErrorDocument 403 /{FOLDERNAME}/theme/403.html ErrorDocument 403 {FOLDERNAME}/theme/403.html
ErrorDocument 404 /{FOLDERNAME}/theme/404.html ErrorDocument 404 {FOLDERNAME}/theme/404.html
ErrorDocument 408 /{FOLDERNAME}/theme/408.html ErrorDocument 408 {FOLDERNAME}/theme/408.html
ErrorDocument 500 /{FOLDERNAME}/theme/500.html ErrorDocument 500 {FOLDERNAME}/theme/500.html
ErrorDocument 502 /{FOLDERNAME}/theme/502.html ErrorDocument 502 {FOLDERNAME}/theme/502.html

View File

@@ -6,7 +6,7 @@
<title>Error 400</title> <title>Error 400</title>
<link rel="shortcut icon" href="img/icon.png"> <link rel="shortcut icon" href="img/icon.png">
<!-- Stylesheets --> <!-- Stylesheets -->
<link rel="stylesheet" href="/{FOLDERNAME}/theme/style.css" /> <link rel="stylesheet" href="{FOLDERNAME}/theme/style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
</head> </head>
<body class="fadeDown"> <body class="fadeDown">

View File

@@ -6,7 +6,7 @@
<title>Error 403</title> <title>Error 403</title>
<link rel="shortcut icon" href="img/icon.png"> <link rel="shortcut icon" href="img/icon.png">
<!-- Stylesheets --> <!-- Stylesheets -->
<link rel="stylesheet" href="/{FOLDERNAME}/theme/style.css" /> <link rel="stylesheet" href="{FOLDERNAME}/theme/style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
</head> </head>
<body class="fadeDown"> <body class="fadeDown">

View File

@@ -6,7 +6,7 @@
<title>Error 404</title> <title>Error 404</title>
<link rel="shortcut icon" href="img/icon.png"> <link rel="shortcut icon" href="img/icon.png">
<!-- Stylesheets --> <!-- Stylesheets -->
<link rel="stylesheet" href="/{FOLDERNAME}/theme/style.css" /> <link rel="stylesheet" href="{FOLDERNAME}/theme/style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
</head> </head>
<body class="fadeDown"> <body class="fadeDown">

View File

@@ -6,7 +6,7 @@
<title>Error 408</title> <title>Error 408</title>
<link rel="shortcut icon" href="img/icon.png"> <link rel="shortcut icon" href="img/icon.png">
<!-- Stylesheets --> <!-- Stylesheets -->
<link rel="stylesheet" href="/{FOLDERNAME}/theme/style.css" /> <link rel="stylesheet" href="{FOLDERNAME}/theme/style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
</head> </head>
<body class="fadeDown"> <body class="fadeDown">

View File

@@ -6,7 +6,7 @@
<title>Error 500</title> <title>Error 500</title>
<link rel="shortcut icon" href="img/icon.png"> <link rel="shortcut icon" href="img/icon.png">
<!-- Stylesheets --> <!-- Stylesheets -->
<link rel="stylesheet" href="/{FOLDERNAME}/theme/style.css" /> <link rel="stylesheet" href="{FOLDERNAME}/theme/style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
</head> </head>
<body class="fadeDown"> <body class="fadeDown">

View File

@@ -6,7 +6,7 @@
<title>Error 502</title> <title>Error 502</title>
<link rel="shortcut icon" href="img/icon.png"> <link rel="shortcut icon" href="img/icon.png">
<!-- Stylesheets --> <!-- Stylesheets -->
<link rel="stylesheet" href="/{FOLDERNAME}/theme/style.css" /> <link rel="stylesheet" href="{FOLDERNAME}/theme/style.css" />
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'> <link href='http://fonts.googleapis.com/css?family=Open+Sans:400' rel='stylesheet' type='text/css'>
</head> </head>
<body class="fadeDown"> <body class="fadeDown">

View File

@@ -7,4 +7,4 @@
<div class="footer"> <div class="footer">
Apaxy by <a href="https://twitter.com/adamwhitcroft">@adamwhitcroft</a> Apaxy by <a href="https://twitter.com/adamwhitcroft">@adamwhitcroft</a>
</div><!--/.footer--> </div><!--/.footer-->
<script src=/{FOLDERNAME}/theme/apaxy.js></script> <script src={FOLDERNAME}/theme/apaxy.js></script>