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:
When I runhttp://localhost:10088/concrete/... on the server , the site comes up ok.
When I change the docroot to
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
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
Viewing 15 lines of 16 lines. View entire code block.
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
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 ;-)
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 ;-)
ok, got it.
thanks.
thanks.
(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.