Solved

Can't configure VirtualHost for redmine

Posted on 2011-09-22
7
741 Views
Last Modified: 2012-05-12
Hello Experts,

I want to configure virtual host for my redmine server, so our users can be able to access it from home.
Here is the URL
http://pm.pickup.org.il/

And here is VirtualHost config file

<VirtualHost *:80>
        ServerName pm.pickup.org.il
        ServerAlias www.pm.pickup.org.il
        ServerAdmin webmaster@<YOUR-DOMAIN>.com
        DocumentRoot /var/www/redmine/public
        ErrorLog /var/log/apache2/redmine_error
        CustomLog /var/log/apache2/redmine_access combined


 <Directory "/var/www/redmine/public/">
                Options Indexes ExecCGI FollowSymLinks
                Order allow,deny
                Allow from all
                AllowOverride all
        </Directory>

    </VirtualHost>

Unfortunately, it not work. If i'm trying to access via pm.pickup.org.il receiving error. if adding port :3000 nothing happen at all.

Any ideas?
0
Comment
Question by:DanSmir
  • 3
  • 2
  • 2
7 Comments
 
LVL 14

Expert Comment

by:Dushyant Sharma
ID: 36579674
i think you should check the logs. you 'll get the exact problem there.
0
 

Author Comment

by:DanSmir
ID: 36579690
ddsh79:
here is logs

192.168.1.99 - - [22/Sep/2011:13:33:10 +0300] "GET / HTTP/1.1" 500 659 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2"
192.168.1.99 - - [22/Sep/2011:13:36:47 +0300] "GET / HTTP/1.1" 500 659 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2"
192.168.1.99 - - [22/Sep/2011:13:37:18 +0300] "GET / HTTP/1.1" 500 659 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2"
192.168.1.99 - - [22/Sep/2011:13:40:33 +0300] "GET / HTTP/1.1" 500 659 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2"
192.168.1.99 - - [22/Sep/2011:13:45:48 +0300] "GET / HTTP/1.1" 500 659 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:6.0.2) Gecko/20100101 Firefox/6.0.2"
202.160.175.226 - - [22/Sep/2011:14:09:51 +0300] "GET / HTTP/1.1" 500 659 "http://www.experts-exchange.com/Software/Server_Software/Web_Servers/Q_27321799.html" "Mozilla/5.$
202.160.175.226 - - [22/Sep/2011:14:09:51 +0300] "GET /favicon.ico HTTP/1.1" 500 659 "-" "Mozilla/5.0 (Windows NT 5.1) AppleWebKit/535.1 (KHTML, like Gecko) Chrome/14.0.835$

[Thu Sep 22 13:33:02 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Sep 22 13:33:02 2011] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal$
[Thu Sep 22 13:36:39 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Sep 22 13:36:40 2011] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal$
[Thu Sep 22 13:36:47 2011] [alert] [client 192.168.1.99] /var/www/redmine/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not i$
[Thu Sep 22 13:37:18 2011] [alert] [client 192.168.1.99] /var/www/redmine/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not i$
[Thu Sep 22 13:40:33 2011] [alert] [client 192.168.1.99] /var/www/redmine/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not i$
[Thu Sep 22 13:42:34 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Sep 22 13:42:35 2011] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal$
[Thu Sep 22 13:45:40 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Sep 22 13:45:40 2011] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal$
[Thu Sep 22 13:45:48 2011] [alert] [client 192.168.1.99] /var/www/redmine/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not i$
[Thu Sep 22 14:09:51 2011] [alert] [client 202.160.175.226] /var/www/redmine/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module no$
[Thu Sep 22 14:09:51 2011] [alert] [client 202.160.175.226] /var/www/redmine/public/.htaccess: Invalid command 'RewriteEngine', perhaps misspelled or defined by a module no$
[Thu Sep 22 14:12:15 2011] [notice] Graceful restart requested, doing restart
PHP Deprecated:  Comments starting with '#' are deprecated in /etc/php5/apache2/conf.d/mcrypt.ini on line 1 in Unknown on line 0
[Thu Sep 22 14:12:15 2011] [notice] Apache/2.2.14 (Ubuntu) DAV/2 SVN/1.6.6 PHP/5.3.2-1ubuntu4.9 with Suhosin-Patch mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal$


any ideas?
0
 
LVL 14

Expert Comment

by:Dushyant Sharma
ID: 36579791
logs not looking that conclusive but it seems that there is a problem with the application and not the webserver. also check the error logs.
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:DanSmir
ID: 36579818
I checked, nothing terrible... Ideas?
0
 
LVL 14

Expert Comment

by:Dushyant Sharma
ID: 36579835
500 is application error. something is wrong in the code which webserver is not able to execute. try adding an html page instead of a code page as index file. it should be served. also reconfigure the logs so that you get more details on error.
0
 
LVL 7

Accepted Solution

by:
jackiechen858 earned 500 total points
ID: 36894343
I just installed a redmine server. So here is what I understand:

Redmine is a web server itself ( normally listening on port 3000) , it's not part of apache.  So you can't configure it like you did.

You can configure apache as a proxy for it. e.g.

LoadModule proxy_module modules/mod_proxy.so # enable mod_proxy

<VirtualHost *>

ServerName pm.pickup.org.il
ProxyPass / http://localhost:3000/
ProxyPassReverse / http://localhost:3000/

</VirtualHost>

0
 
LVL 7

Expert Comment

by:jackiechen858
ID: 36894411
you said "I want to configure virtual host for my redmine server, so our users can be able to access it from home.". I guess you must have a local network and will setup port forwarding on a router to forward http traffic to the redmine server?

There are other solutions becide using apache proxy. The question is do you need apache? If you don't have any other website running on the same ip, you can just stop apache, reconfigure redmine to use port 80, or config to forward external incoming tcp port:80 to the redmine server port 3000.


If you do have another website running on same ip ( with a different domain name), then apache proxy is the solution for you.



0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Reverse Proxy Server 6 78
Vmware tools installation in ubuntu 14.04 11 97
Linux Hanging with disable Error Output 4 80
Help with a redirect in web.config file 8 20
Periodically we have to update or add SSL certificates for customers. Depending upon your hosting plan you may be responsible for the installation and/or key generation. In the wake of Heartbleed many sites were forced to re-key. We will concen…
If you don't have the right permissions set for your WordPress location in IIS, you won't be able to perform automatic updates. Here's how to fix the problem.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now