Amsterdamned
11 post(s)
|
Hi we have Bitnami redmine working on a url http://sub.domain.com:8080/redmine
I need to make the URL http://sub.domain.com:8080 without the /redmine
Can someone talk me through how to do that?
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
Try the following:
1. Remove the “prefix=/redmine” entry from your <installdir>/apps/redmine/config/mongrel_cluster.yml. 2. Replace the <installdir>/apps/redmine/conf/redmine.conf file for this one:
<VirtualHost *:8080>
ServerAdmin info @ example.com
ServerName www. example. com
ServerAlias example.com
ErrorLog "logs/rubystack_apache_error_log"
CustomLog "logs/rubystack_apache_access_log" combined
# this not only blocks access to .svn directories, but makes it
# appear as though they aren't even there, not just that they are
# forbidden
<DirectoryMatch "^/.*/\.svn/">
ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
# This passes through remote_user to mongrel
RewriteEngine On
# Redirect non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://rubystackcluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>
<Proxy balancer://rubystackcluster>
BalancerMember http:// 127.0.0.1:3001
BalancerMember http:// 127.0.0.1:3002
</Proxy>
3. Restart your Redmine Stack: <installdir>/ctlscript.sh restart
I hope it helps.
|
|
|
Amsterdamned
11 post(s)
|
hmm didn’t work at all.
Edit: tried to post my redmine.conf file but couldn’t get it to display correctly on these forums! Whats the secret?
I then restarted the server but when I go http://test.spinifexint.com.au:8080/ I get the usual Access page which still tries to redirect me to http://test.spinifexint.com.au:8080/redmine which then gives me a page not found error. From the terminal transcript below I can see some balancer errors.
test:redmine-0.8.4-0 spinifex$ ./ctlscript.sh restart /Applications/redmine-0.8.4-0/subversion/scripts/ctl.sh : subversion stopped Syntax error on line 24 of /Applications/redmine-0.8.4-0/apps/redmine/conf/redmine.conf: BalancerMember can not have a balancer name when defined in a location apache config test fails, aborting stopping port 3001 stopping port 3002 STOPPING server from pid file /Applications/redmine-0.8.4-0/mysql/data/test.spinifexint.com.au.pid 090611 16:37:19 mysqld ended
/Applications/redmine-0.8.4-0/mysql/scripts/ctl.sh : mysql stopped chown: /Applications/redmine-0.8.4-0/mysql/data/mysqld.log: Operation not permitted Starting mysqld.bin daemon with databases from /Applications/redmine-0.8.4-0/mysql/data /Applications/redmine-0.8.4-0/mysql/scripts/ctl.sh : mysql started at port 3306 starting port 3001 starting port 3002 Syntax error on line 24 of /Applications/redmine-0.8.4-0/apps/redmine/conf/redmine.conf: BalancerMember can not have a balancer name when defined in a location apache config test fails, aborting /Applications/redmine-0.8.4-0/subversion/scripts/ctl.sh : subversion started at port 3690 test:redmine-0.8.4-0 spinifex$
Is there something else I need to do to get redmine at http://test.spinifexint.com.au:8080 without the /redmine?
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
You can post code using the tags: < pre > < code > your_code </ code > </ pre >. The only modification in the redmine configuration is to remove the “prefix” entry in the <installdir>/apps/redmine/config/mongrel_cluster.yml file. Taking a look your error codes seems an Apache configuration error.
Cheers.
|
|
|
Amsterdamned
11 post(s)
|
Cheers for the tag help!
I still can’t get the redmine site to show up under http://test.spinifexint.com.au:8080 instead of http://test.spinifexint.com.au:8080/redmine
I have gone into /apps/redmine/config/mongrel_cluster.yml. and removed the line with prefix=/redmine and then saved and restarted redmine.
But now when I go to http://test.spinifexint.com.au:8080 I still get the welcome screen but now if I click on the ruby icon it just gives me a page not found error so how do I get to the redmine homepage?
Or do I have to do something to make it load the main redmine site at http://test.spinifexint.com.au:8080 without displaying the welcome page?
cheers.
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
Are you continue getting this error?
Syntax error on line 24 of /Applications/redmine-0.8.4-0/apps/redmine/conf/redmine.conf:
BalancerMember can not have a balancer name when defined in a location
apache config test fails, aborting
Please take care that this code is correct:
<Proxy balancer://rubystackcluster>
BalancerMember http:// 127.0.0.1:3001
BalancerMember http:// 127.0.0.1:3002
</Proxy>
Notice that I have introduced a space between “http://” and “127.0.0.1:3001” because this forum changes automatically the url. You should remove this space.
Cheers.
|
|
|
Amsterdamned
11 post(s)
|
I don’t get that error. I have fixed up the code and removed the space from the http:// and also cleared the spaces from ServerAdmin and ServerName fields.
<VirtualHost *:8080>
ServerAdmin <a href="mailto:myname@spinifexgroup.com.au">myname@spinifexgroup.com.au</a>
ServerName test.spinifexint.com.au
ServerAlias example.com
ErrorLog "logs/rubystack_apache_error_log"
CustomLog "logs/rubystack_apache_access_log" combined
# this not only blocks access to .svn directories, but makes it
# appear as though they aren't even there, not just that they are
# forbidden
<DirectoryMatch "^/.*/\.svn/">
ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
# This passes through remote_user to mongrel
RewriteEngine On
# Redirect non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://rubystackcluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>
<Proxy balancer://rubystackcluster>
BalancerMember <a href="http://127.0.0.1:3001">http://127.0.0.1:3001</a>
BalancerMember <a href="http://127.0.0.1:3002">http://127.0.0.1:3002</a>
</Proxy>
And I have also modified the mongrel_cluster.yml to remove “prefix=/redmine” from <installdir>/apps/redmine/config/mongrel_cluster.yml.
I then restarted with ctlscript.sh restart but the problem is the same:
http://test.spinifexint.com.au:8080 gets me to the redmine/bitnami welcome screen clicking on the redmine ruby icon tries to redirect to http://test.spinifexint.com.au:8080/redmine which then gives me a redmine page not found error.
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
It is strange. Could you try removing the “DocumentRoot” entry in the apache2/conf/httpd.conf file?
|
|
|
Amsterdamned
11 post(s)
|
Perfect, thats done the trick quite nicely!!!
|
|
|
chrismalek
4 post(s)
|
I need to do the same thing (remove redmine) from the url but I am running on windows. These instructions are for linux. I can’t seem to hunt down all the places on the windows config. Can anyone provide me with any guidance?
Thanks in advance.
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
Stop the servers through the shortcuts and try the following:
1. Edit the installdir\apps\redmine\conf\redmine.conf file and remove the “/redmine” entries:
ProxyPass / balancer://redminecluster
ProxyPassReverse / balancer://redminecluster
<Proxy balancer://redminecluster>
BalancerMember http:// 127.0.0.1:3001/
BalancerMember http:// 127.0.0.1:3002/
</Proxy>
2. Edit the installdir/apps/redmine/scripts/serviceinstall.bat and remove the prefix entry " —prefix /redmine"
3. Reinstall the services:
> cd “C:\Program Files\BitNami Redmine Stack\apps\redmine\scripts”
> serviceinstall.bat UNINSTALL
> serviceinstall.bat INSTALL
4. Start the services
I hope it helps.
|
|
|
chrismalek
4 post(s)
|
Beltran, I made those two changes but I get a 404 after restarting all the services. Is a change required in some apache configuration file?
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
Yes it is necessary but the installdir/apps/redmine/conf/redmine.conf file is an Apache configuration file. Could you access through http://127.0.0.1:3001 to the application? Could you check if there is any error in the installdir_/apache2/logs/errorlog file?
|
|
|
chrismalek
4 post(s)
|
I do get a response from http://127.0.0.1:3001 and http://127.0.0.1:3002
apache error log—-
[Thu Oct 01 09:44:08 2009] [notice] Apache/2.2.13 (Win32) configured — resuming normal operations
[Thu Oct 01 09:44:08 2009] [notice] Server built: Aug 6 2009 15:50:50
[Thu Oct 01 09:44:08 2009] [notice] Parent: Created child process 2992
[Thu Oct 01 09:44:09 2009] [notice] Child 2992: Child process is running
[Thu Oct 01 09:44:09 2009] [notice] Child 2992: Acquired the start mutex.
[Thu Oct 01 09:44:09 2009] [notice] Child 2992: Starting 64 worker threads.
[Thu Oct 01 09:44:09 2009] [notice] Child 2992: Starting thread to listen on port 80.
[Thu Oct 01 09:50:09 2009] [warn] proxy: No protocol handler was valid for the URL /favicon.ico. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.
|
|
|
jbriguet
2 post(s)
|
It finally worked for me, but i had to modify the remine.conf into exactly this (with no trailing /) like that :
<VirtualHost *:80>
ServerAdmin haha.huhu.com
ServerName server.our.lan
ServerAlias serveer
ErrorLog "logs/rubystack_apache_error.log"
CustomLog "logs/rubystack_apache_access.log" combined
# this not only blocks access to .svn directories, but makes it
# appear as though they aren't even there, not just that they are
# forbidden
<DirectoryMatch "^/.*/\.svn/">
ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
# This passes through remote_user to mongrel
RewriteEngine On
# Redirect non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]
</VirtualHost>
#ProxyPass / balancer://redminecluster
#ProxyPassReverse / balancer://redminecluster
<Proxy balancer://redminecluster>
BalancerMember http:// 127.0.0.1:3001
BalancerMember http:// 127.0.0.1:3002
</Proxy>
|
|
|
dreamland
15 post(s)
|
Hi,
Thank you for the tip. I was able to remove the /redmine from the address but the locations for subversion repositories don’t work anymore.
I get 404 error messages.
Any idea why ?
Thx
|
|
|
chrismalek
4 post(s)
|
I was finally able to get this to work. jbriguet’s reply helped. Thank you so much.The one issue that is mentioned in another post is that a space is getting injected between the “http://” and “127.0.0.1:3001” and it has to be removed. I think the forum is doing it to prevent embedded links.
|
|
|
jbriguet
2 post(s)
|
Indeed it is :)
|
|
|
instinct64
1 post
|
Sorry for dragging this back up but I believe this is still relevant.
If you have multiple domains and subdomains on your server you must place the ProxyPass and Proxy balancer lines into the Virtual Host, or every domain will try to be passed to Redmine!
Like this:
<VirtualHost *:80>
ServerAdmin your @ email .com
ServerName subdomain . yourdomain . tld
ServerAlias www . subdomain . yourdomain . tld
ErrorLog "logs/rubystack_apache_error.log"
CustomLog "logs/rubystack_apache_access.log" combined
# this not only blocks access to .svn directories, but makes it
# appear as though they aren't even there, not just that they are
# forbidden
<DirectoryMatch "^/.*/\.svn/">
ErrorDocument 403 /404.html
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
# This passes through remote_user to mongrel
RewriteEngine On
# Redirect non-static requests to cluster
RewriteCond %{DOCUMENT_ROOT}/%{REQUEST_FILENAME} !-f
RewriteRule ^/(.*)$ balancer://redminecluster%{REQUEST_URI} [P,QSA,L]
#ProxyPass / balancer://redminecluster
#ProxyPassReverse / balancer://redminecluster
<Proxy balancer://redminecluster>
BalancerMember http:// 127.0.0.1:3001
BalancerMember http:// 127.0.0.1:3002
</Proxy>
</VirtualHost>
Hope this is useful to someone, took me a little while to figure why my Virtual Hosts were not working!
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Thanks for posting it! I’m sure this will be helpful for other bitnami users.
|
|
|
ionutr81
1 post
|
hi guys,
I tried all day to figure out how to make it working based on this topic and google without suceeding at all.
My OS is a W XP and redmine version is 1.0.4.
In the best situation I’m succeding to access redmine as http://x.×.×.x only for the first page
in logs I’m getting what chrismalled got as well
“[Thu Oct 01 09:50:09 2009] [warn] proxy: No protocol handler was valid for the URL /favicon.ico. If you are using a DSO version of mod_proxy, make sure the proxy submodules are included in the configuration using LoadModule.”…
I also mention that:
- the apache file to change it is http-proxy-mongrel.conf that seems to fit in above description; on the other side if I’ll change it by adding virtualhost and all ReWriteCond I won’t be able to start Apache anymore.
- I observed that ReWritecond can be found under .htaccess from Redmin/public, trying to do the changed under it didn’t succeed at all to make it working.
- trying to access http://127.0.0.1:3001/ is working but without any graphical interface. and it looks very strange. :)
So, my question, what I did wrong?
Thank you for helping me with this, Ionut
|
|
|
Beltrán Rueda
Administrator
3,714 post(s)
|
Hi,
Please try the following tutorial: http://wiki.bitnami.org/Applications/BitNami_Redmine_Stack#How_to_change_the_default_URL.3f
|