DanSmir
asked on
Can't configure VirtualHost for redmine
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>.co m
DocumentRoot /var/www/redmine/public
ErrorLog /var/log/apache2/redmine_e rror
CustomLog /var/log/apache2/redmine_a ccess 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?
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>.co
DocumentRoot /var/www/redmine/public
ErrorLog /var/log/apache2/redmine_e
CustomLog /var/log/apache2/redmine_a
<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?
i think you should check the logs. you 'll get the exact problem there.
ASKER
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 "https://www.experts-exchange.com/questions/27321799/Can't-configure-VirtualHost-for-redmine.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/m crypt.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/m crypt.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/.h taccess: 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/.h taccess: 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/.h taccess: 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/m crypt.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/m crypt.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/.h taccess: 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/.h taccess: 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/.h taccess: 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/m crypt.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?
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 "https://www.experts-exchange.com/questions/27321799/Can't-configure-VirtualHost-for-redmine.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/m
[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/m
[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/.h
[Thu Sep 22 13:37:18 2011] [alert] [client 192.168.1.99] /var/www/redmine/public/.h
[Thu Sep 22 13:40:33 2011] [alert] [client 192.168.1.99] /var/www/redmine/public/.h
[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/m
[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/m
[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/.h
[Thu Sep 22 14:09:51 2011] [alert] [client 202.160.175.226] /var/www/redmine/public/.h
[Thu Sep 22 14:09:51 2011] [alert] [client 202.160.175.226] /var/www/redmine/public/.h
[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/m
[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?
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.
ASKER
I checked, nothing terrible... Ideas?
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
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.
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.