Removing the public/.htaccess file.

This commit is contained in:
Ilya Bakhlin 2022-01-01 16:01:54 +01:00
parent 69f39add31
commit 3ed115a9ed
7 changed files with 65 additions and 19 deletions

7
.gitattributes vendored
View file

@ -3,12 +3,15 @@
.gitignore text eol=lf export-ignore .gitignore text eol=lf export-ignore
.gitkeep text eol=lf export-ignore .gitkeep text eol=lf export-ignore
# PHP # Markdown
*.php text eol=lf *.md text eol=lf
# JSON # JSON
*.json text eol=lf *.json text eol=lf
*.lock text eol=lf *.lock text eol=lf
# PHP
*.php text eol=lf
# YAML # YAML
*.yml text eol=lf *.yml text eol=lf

4
.gitignore vendored
View file

@ -1,6 +1,7 @@
# Chandler # Chandler
/extensions/available/ /extensions/available/
/extensions/enabled/ /extensions/enabled/
/logs/
/chandler.yml /chandler.yml
# Composer # Composer
@ -22,6 +23,3 @@
!/tmp/cache/database/.gitkeep !/tmp/cache/database/.gitkeep
!/tmp/cache/templates/.gitkeep !/tmp/cache/templates/.gitkeep
!/tmp/cache/yaml/.gitkeep !/tmp/cache/yaml/.gitkeep
/logs/*
!/logs/.gitkeep

View file

@ -1,9 +0,0 @@
# Chandler
Chandler is PHP-based web-framework/web-portal. By itself it's pretty useless, but you can install plugins/apps.
# Plugins
Plugins may provide a Web Application or be a library or hook.
Web Apps are mounted to a path like this: `/<id>` (where `id = app id`), but one app can be mounted to root.
# State of this repo
This product is still in development phase, we are currently writing documentation/tests and API is going to change.

47
ReadMe.md Normal file
View file

@ -0,0 +1,47 @@
# Chandler
Chandler is PHP-based web-framework/web-portal. By itself it's pretty useless, but you can install plugins/apps.
# Plugins
Plugins may provide a Web Application or be a library or hook.
Web Apps are mounted to a path like this: `/<id>` (where `id = app id`), but one app can be mounted to root.
# State of this repo
This product is still in development phase, we are currently writing documentation/tests and API is going to change.
# Installation #
## Web Server ##
### Apache ###
```shell
a2enmod rewrite
```
# Configuration #
## Web Server ##
### Apache ###
```apache
<VirtualHost 0.0.0.0:80>
<Directory "/absolute/path/to/chandler/public">
<IfModule mod_rewrite.c>
RewriteBase /
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^.*$ index.php [L,NC,QSA]
</IfModule>
AllowOverride None
DirectoryIndex index.php
Require all granted
</Directory>
CustomLog "/absolute/path/to/access.log" combined
DocumentRoot "/absolute/path/to/chandler/public"
ErrorLog "/absolute/path/to/chandler/error.log"
ServerAdmin email@example.com
ServerAlias www.example.com
ServerName example.com
</VirtualHost>
```

View file

View file

@ -1,5 +0,0 @@
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php [QSA]

12
src/Interfaces/Route.php Normal file
View file

@ -0,0 +1,12 @@
<?php
declare(strict_types = 1);
namespace Chandler\Interfaces;
/**
* @package Chandler\Interfaces
*/
interface Route
{
}