Skip to main content
Pada instalasi default midgard dari rpms, walau situs yang di generate oleh midgard sudah dirubah port 8001 ke port 80 di aegir atau mengupdate database host di section port namun situs yang di buat di midgard tidak akan dapat diakses di browser tanpa menyertakan port 8001 ( http://localhost:8001/midgardsite ). Hal ini dikarenakan ada yang kurang pada midgard-data.conf


//contoh midgard-data.conf default rpm
MidgardDatabase midgard midgard password


## Uncomment this if you want serve files instead of Midgard URLs
## where there's a match for both. You'd want to use this if you have
## active pages and you're using static dummy pages to force this
## behaviour. Note that this setting is apache-wide, not per-host.
# MidgardFavorFiles On

## Uncomment this for PHP3,
# MidgardRootFile "/usr/lib/apache/midgard-root.php3"
## or this for PHP4
MidgardRootFile "/usr/lib/apache/midgard-root.php"

Listen 8001
NameVirtualHost 192.168.0.193:8001

MidgardEngine On
ServerName www.domainkita.org
Port 8001
ErrorLog logs/error_log
CustomLog logs/access_log combined


# Switch off magic quotes - it is required with Midgard
php_value magic_quotes_gpc off
php_value magic_quotes_runtime off

# Configure text parser:
# Change to 'russian' for Russian Midgard
MidgardParser latin1
MidgardBlobDir "/var/www/blobs"

# Configuration for Russian Midgard:

# default charset for real or virtual server (selected if all other charset-
# selections methods fails)
CharsetDefault koi8-r
# Default source (on-disk) charset (we keep all content in DB in KOI8-R
# encoding). If you want different encoding, please re-encode midgard-ru.sql
# before inserting it into DB too.
CharsetSourceEnc koi8-r
# Force mod_charset to do its work
CharsetDisable Off


//akhir dari midgard-data.conf

maka agar situs dapat diakses melalui port 80 kami menambahkan

//tambahan midgard-data.conf
NameVirtualHost 192.168.0.193:80

MidgardEngine On
ServerName www.domainkita.org
Port 80
ErrorLog logs/error_log
CustomLog logs/access_log combined


# Switch off magic quotes - it is required with Midgard
php_value magic_quotes_gpc off
php_value magic_quotes_runtime off

# Configure text parser:
# Change to 'russian' for Russian Midgard
MidgardParser latin1
MidgardBlobDir "/var/www/blobs"

# Configuration for Russian Midgard:

# default charset for real or virtual server (selected if all other charset-
# selections methods fails)
CharsetDefault koi8-r
# Default source (on-disk) charset (we keep all content in DB in KOI8-R
# encoding). If you want different encoding, please re-encode midgard-ru.sql
# before inserting it into DB too.
CharsetSourceEnc koi8-r
# Force mod_charset to do its work
CharsetDisable Off


//tambahan selesai

Setelah menambahkan hal diatas, situs yang dihasilkan midgard dapat diakses melalui port 80.

Comments

Popular posts from this blog

django realtime currency rate

Its been a really long time since I post something here For some dumb reason, I forgot my blogger login/password :hammer: Anyway, since I'm now heavily work with django stuff Here are some django related projects that hopefully can benefit anyone who need it * django-currency_rate, simple django app that can give you realtime currency rate base on http://themoneyconverter.com . Owh its even can calculate the rate with templatetag :) https://github.com/avenpace/django-exchange_rate

python-oauth2 hack

When you are using python-oauth2 from simplegeo on your Google App Engine instance, you'll get some exception that cause by "ImportError: No module named httplib2" Yes, apparently httplib2 are not supported by GAE and instead they oblige you to use google.appengine.api.urlfetch.fetch instead So I hack python-oauth2 to use google.appengine.api.urlfetch.fetch You can found my python-oauth2 fork on https://github.com/avenpace/python-oauth2

Another django cms base

Cooper-cms, a really simple cms built with django that probably suitable for company site. It has testimonial, team, content and blog (of course :) ) modules. I know its not fancy as django-cms but it will suit for some simple company site though https://bitbucket.org/avenpace/cooper-cms