I’ve currently setup
- ubuntu lucid
- lamp
- redmine
I’m testing out on free-tier AWS cloud with dyndns.org dyndns pro with my own domain.com mapped to the public address of AWS cloud E2C instance. This is working when I go www.domain.com/redmine.
However, I want to mapped it as a sub domain redmine.domain.com.
What do I need to do in dyndns.org (I tried adding cname redmine.domain.com to e2c ip but it still doesn’t work)
What else do i need to configure or set?
Below is apache configurations
/etc/apache2/sites-available/redmine <VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www
ServerName redmine.domain.com RewriteEngine on
RewriteRule ^/$ /redmine [R] <Directory /var/www/redmine>
RailsBaseURI /redmine
PassengerResolveSymlinksInDocumentRoot on
</Directory> ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn CustomLog /var/log/apache2/access.log combined
</VirtualHost>
Cheers
You shouldn’t need all the rewrite stuff you have in your virtual host. The ‘DocumentRoot’ can be set do use /redmine directory directly and then the ‘RailsBaseURI’ will be /
Simplify it to be…
ServerAdmin webmaster@localhost
DocumentRoot /var/www/redmine
ServerName redmine.xxx.com RailsBaseURI /
PassengerResolveSymlinksInDocumentRoot on ErrorLog /var/log/apache2/error.log # Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
Check more discussion of this question.