Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deployment does not respect vhost template #90

Closed
Schnaaf opened this issue Jun 7, 2016 · 3 comments
Closed

deployment does not respect vhost template #90

Schnaaf opened this issue Jun 7, 2016 · 3 comments

Comments

@Schnaaf
Copy link

Schnaaf commented Jun 7, 2016

Hi,

Not sure if this is the right place to post this issue.

If I define the DocumentRoot in my vhost template as follows:
DocumentRoot "${docroot}/../myotherdocroot/"
Then I can create this vhost correctly using the API

Next if I deploy a zpk (with the docroot set in the deployment.xml) the complete value between double quotes gets replaced with the docroot setting from my deployment.xml ignoring how I defined this in my vhost template.

So in short, after deploy I end up with:
DocumentRoot "/usr/local/zend/var/apps/<scheme>/<vhost>/<port>/<app>/<docroot_from_deployment.xml>/"
But in my understanding of a template I should have ended up with:
DocumentRoot "/usr/local/zend/var/apps/<scheme>/<vhost>/<port>/<app>/<docroot_from_deployment.xml>/../myotherdocroot/"

same thing happens with
<Directory "${docroot}/../myotherdocroot/">

@Schnaaf
Copy link
Author

Schnaaf commented Jun 8, 2016

You may be wondering why I want to do this. I'm using this documented workaround https://support.zend.com/hc/en-us/articles/203959473 to deploy two vhosts within one template where each vhost should have its own document root within the deployed app. If I were to deploy one single vhost then it would be fixable by setting the correct docroot in deployment.xml. Changing docroot in deployment.xml is not helpfull because I need both vhosts to have a different docroot relative to the docroot in deployment.xml as defined in the template.

@Schnaaf
Copy link
Author

Schnaaf commented Jun 8, 2016

FYI I have also created the ticket #57307 at Zend Support

@Schnaaf Schnaaf closed this as completed Jun 8, 2016
@Schnaaf Schnaaf reopened this Jun 8, 2016
@Schnaaf
Copy link
Author

Schnaaf commented Jun 8, 2016

As I've learned from Zend Support this issue is due to Deployment Daemon behavior and has been filed as a bug.

@Schnaaf Schnaaf closed this as completed Jun 8, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant