Browse Source

Remove link in blog, add documentation

pull/2/head
Noah Petherbridge 5 years ago
parent
commit
1a30c2ab58
3 changed files with 64 additions and 13 deletions
  1. +50
    -0
      Apache.md
  2. +5
    -1
      README.md
  3. +9
    -12
      rophako/www/blog/entry.inc.html

+ 50
- 0
Apache.md View File

@@ -0,0 +1,50 @@
# Apache Configuration

Here's some tips on getting Rophako set up on Apache.

# mod\_fcgid and mod\_rewrite

For kirsle.net I needed to set it up using `mod_fcgid` because my site has a lot
of legacy URLs to old static files, so Rophako needs to serve the main website
pages and Apache needs to serve everything else.

* Apache configuration:

```apache
# Rophako www.kirsle.net
<VirtualHost *:80>
ServerName www.kirsle.net
DocumentRoot /home/kirsle/www
CustomLog /home/kirsle/logs/access_log combined
ErrorLog /home/kirsle/logs/error_log
SuexecUserGroup kirsle kirsle

<Directory "/home/kirsle/www">
Options Indexes FollowSymLinks ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>

<Directory "/home/kirsle/www/fcgi">
SetHandler fcgid-script
Options +ExecCGI
AllowOverride all
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
```

* `~/www/.htaccess` configuration:

```apache
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /fcgi/index.fcgi/$1 [QSA,L]
RewriteRule ^$ /fcgi/index.fcgi/ [QSA,L]
</IfModule>
```

+ 5
- 1
README.md View File

@@ -14,4 +14,8 @@ This project is under heavy construction.

These may need to be installed for the dependencies to build:

**Fedora:** `libffi-devel`
**Fedora:** `libffi-devel libjpeg-devel libpng-devel`

# Configuration

See `Apache.md` for Apache setup information.

+ 9
- 12
rophako/www/blog/entry.inc.html View File

@@ -9,19 +9,16 @@
{% endif %}

<div class="blog-author">
<a href="#">{# TODO #}
{% if post["photo"] %}
<img src="{{ post['photo_url'] }}/{{ post['photo'] }}">
{% elif post["avatar"] %}
<img src="/static/avatars/{{ post['avatar'] }}">
{% else %}
<img src="/static/avatars/default.png">
{% endif %}
</a><br>
{% if post["photo"] %}
<img src="{{ post['photo_url'] }}/{{ post['photo'] }}">
{% elif post["avatar"] %}
<img src="/static/avatars/{{ post['avatar'] }}">
{% else %}
<img src="/static/avatars/default.png">
{% endif %}
<br>

<a href="#">
{{ post["profile"]["username"] }}
</a>
{{ post["profile"]["username"] }}
</div>

<div class="blog-timestamp">


Loading…
Cancel
Save