Camen Design Forum

Nginx support

append delete Druid

It seems what I was dreaming of a forum, hope it goes well with nginx. Already created git repository on server, client and only now while reading documentation notice to much "Apache" and to less "Nginx".

Reply RSS

Replies

append delete #1. Druid

It just works* (tm)

* move user up one level, change config as documented.
* if installing on subfolder, run this on root forum directory; grep -rl theme | xargs sed -i 's=\/themes=/forum/themes=g'

append delete #2. Druid

Working with Nginx under subfolder;

git remote add upstream https://github.com/Kroc/NoNonsenseForum.git
git fetch --all
git checkout -b mirror-v26 v26
git checkout master
git checkout develop
grep -rl theme | xargs sed -i 's=\/themes=/forum/themes=g'
git add -u .
git commit -m "fix theme base url, moved from root to forum subfolder"
grep -rl thread --exclude-dir=.git | xargs sed -i 's=thread\.php=forum/thread.php=g'
git add -u .
git commit -m "fix thread.php base url, moved from root to forum subfolder"
grep -rl index --exclude-dir=.git | xargs sed -i 's=index\.php=forum/index.php=g'
git add -u .
git commit -m "fix index.php base url, moved from root to forum subfolder"
git push

append delete #3. Druid

After few lines of code discover FORUM_PATH, but not yet discovered where is assigned. Above solution works, just need to fix logo and home link.

It's working on my server, this solution is ART !!!

Reply

(Leave this as-is, it’s a trap!)

There is no need to “register”, just enter the same name + password of your choice every time.

Pro tip: Use markup to add links, quotes and more.

Your friendly neighbourhood moderators: Kroc, Impressed, Martijn