virtualhost not resolving to concrete site

Permalink
Hi,
I'm having a problem with my virtual host setting.

I'm running zend server with 1 virtualhost correctly pointing to a drupal site.
The other pointing to concrete, keeps resolving to localhost:10088 when I enter concrete.beebase.nl

Settings:
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "/usr/local/zend/apache2/htdocs/epra/"
    ServerName epra.beebase.nl
    ServerAlias epra.beebase.nl
    ErrorLog "logs/epra.beebase-error.log"
    CustomLog "logs/epra.beebase-access.log" common
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin webmaster@dummy-host2.example.com
    DocumentRoot "/usr/local/zend/apache2/htdocs/concrete/"
    ServerName concrete.beebase.nl
    ServerAlias concrete.beebase.nl
    ErrorLog "logs/concrete.beebase-error.log"
    CustomLog "logs/concrete.beebase-access.log" common


When I runhttp://localhost:10088/concrete/... on the server , the site comes up ok.

When I change the docroot to
/usr/local/zend/apache2/htdocs/concrete/concrete

concrete.beebase.nl will show me the directory.

So virtualhost seems to work ok, except when set the docroot to the concrete root folder.

Also the apache2/logs dir doesn't give me any errors.

Thanks for any pointers

maartenfb
 
jordanlev replied on at Permalink Best Answer Reply
jordanlev
What is in the .htaccess file in /usr/local/zend/apache2/htdocs/concrete?
(NOT /usr/local/zend/apache2/htdocs/concrete/concrete)

And what is in the /usr/local/zend/apache2/htdocs/concrete/config/site.php file?

I'm guess something in one of those 2 files is telling the server to redirect to the address with the port number.
maartenfb replied on at Permalink Reply
maartenfb
Wow, great fast reply AND very useful pointer :-)

Turned out the be the concrete/config/site.php file

I removed these lines:

define('BASE_URL', '...';
define('DIR_REL', '/concrete');


Thanks a million!
This newbie is finally off to sleep now ;-)
jordanlev replied on at Permalink Reply
jordanlev
Glad that worked out for you...
But you shouldn't actually remove those lines -- just change them:

define('BASE_URL', 'http://concrete.beebase.nl');
define('DIR_REL', '');
maartenfb replied on at Permalink Reply
maartenfb
ok, got it.

thanks.