{ Community }
  • Academy
  • Docs
  • Developers
  • Resources
    • Community Articles
    • Apigee on GitHub
    • Code Samples
    • Videos & eBooks
    • Accelerator Methodology
  • Support
  • Ask a Question
  • Spaces
    • Product Announcements
    • General
    • Edge/API Management
    • Developer Portal (Drupal-based)
    • Developer Portal (Integrated)
    • API Design
    • APIM on Istio
    • Extensions
    • Business of APIs
    • Academy/Certification
    • Adapter for Envoy
    • Analytics
    • Events
    • Hybrid
    • Integration (AWS, PCF, Etc.)
    • Microgateway
    • Monetization
    • Private Cloud Deployment
    • 日本語コミュニティ
    • Insights
    • IoT Apigee Link
    • BaaS/Usergrid
    • BaaS Transition/Migration
    • Apigee-127
    • New Customers
    • Topics
    • Questions
    • Articles
    • Ideas
    • Leaderboard
    • Badges
  • Log in
  • Sign up

Get answers, ideas, and support from the Apigee Community

  • Home /
  • Edge/API Management /
avatar image
1
Question by HS Bilgen · Jun 12, 2015 at 01:42 PM · 3.4k Views edgeapi managementvirtual hostsupport

Error Deploying Invalid virtual host reference secure.

I am havin the following error on API Management portal. when i clicked the proxy while its downloading and before it started to download following error occurs. So i need to fix it i dont understand. It's onpremise model on our instance. Thank you.

Error Deploying

Invalid virtual host reference secure. Context Revision:1;APIProxy:wfs-proxy_rev1_2015_06_09;Organization:org;Environment:test

Comment
Add comment
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Close

5 Answers

  • Sort: 
avatar image
2

Answer by sarthak · Jun 12, 2015 at 01:46 PM

Hi @Hasan

When you go to your proxy bundle and click on Proxy Endpoint -> default on your left hand panel it will open up an XML view. Go down below and you will see the following snippet there :

<HTTPProxyConnection>
        <BasePath>/v3/abcd</BasePath>
        <VirtualHost>default</VirtualHost>
        <VirtualHost>secure</VirtualHost>
    </HTTPProxyConnection>

I am guessing in your case the virtual host secure is not defined

You can check the configured VH from APIs -> Environment Configurations at the top menu. Most likely you will see no VH by the name of "secure" there.

Learn more about Virtual Hosts here : http://apigee.com/docs/api-services/content/virtual-hosts

Comment
Add comment Show 4 · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image HS Bilgen · Jun 12, 2015 at 02:13 PM 0
Link

Ok i removed the secure tag but now the following error occurs. Unknown target.

<fault><faultstring>Unknown target $IP1:9001</faultstring><detail><errorcode>UNKNOWN_TARGET</errorcode></detail></fault>

avatar image sarthak ♦ HS Bilgen · Jun 12, 2015 at 02:16 PM 0
Link

Is the error happening when deploying the proxy ?

You have a "default" VH defined in your environment configuration as well as in your proxy definition right ?

avatar image AMAR DEVEGOWDA ♦ · Oct 22, 2015 at 07:47 AM 0
Link

@sarthak,

I had a similar problem with default virtual host.

{ "code" : "messaging.config.beans.InvalidVirtualHostReference", 
  "message" : "Invalid virtual host reference default. Context Revision:1;APIProxy:TestProxy;Organization:development-org;Environment:test", 
  "contexts" : [ ], 
  "cause" : { 
    "code" : "messaging.config.beans.VirtualHostDoesNotExist", 
    "message" : "Virtual host default does not exist in environment test", 
    "contexts" : [ ] 
  } 

Your suggestion helped me to fix it.

Thanks.

avatar image sarthak ♦ AMAR DEVEGOWDA ♦ · Oct 22, 2015 at 12:50 PM 0
Link

@AMAR DEVEGOWDA glad I was of help

avatar image
0

Answer by HS Bilgen · Jun 12, 2015 at 02:28 PM

first issue is ok. it's not appearing again but the second issue which is unknown target error is still occurs.

I have VH defined test as 9002 and VH prod defined as 9001 in the environment configuration. In the proxy definition i didn't mentioned as any of them specific port so which steps should i follow?

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by sarthak · Jun 12, 2015 at 02:51 PM

In your environment configurations you will see that virtual hosts have a name.

In your proxy definition you should be using that name :

<HTTPProxyConnection>
        <BasePath>/v3/abcd</BasePath>
        <VirtualHost>{use the VH NAME here}</VirtualHost>
    </HTTPProxyConnection>

Hope this helps


vh.png (29.6 kB)
Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by Mike Dunker @Google   · Jun 12, 2015 at 05:15 PM

Hi @Hasan,

This error

<fault><faultstring>Unknown target $IP1:9001</faultstring><detail><errorcode>UNKNOWN_TARGET</errorcode></detail></fault>

is not an issue with your virtual hosts, it should be an issue with your target. It is probably something wrong with your HTTPTargetConnection in one of your target files. Look at your target files and see if you have IP1 specified -- "$IP1" is not a valid URL, which I think is the error.

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image
0

Answer by anantha · Nov 20, 2018 at 09:37 PM

The deploying error gets resolved when you remove the <VirtualHost>secure</VirtualHost> tag from <HTTPProxyConnection> parent element .

Comment
Add comment · Link
10 |5000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by Apigeeks only
  • Viewable by the original poster
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

27 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Virtual host does not exist on publish, intermittent api failures 1 Answer

are there more tutorial lectures which teach us set up more real-world API proxies? 1 Answer

Integrating SAP and Apigee. Error while uploading WSDL file into Apigee 5 Answers

How to calculate Error Rate using Api Monitoring Management API? 0 Answers

How to get Apps for multiple Developers? 3 Answers

  • Products
    • Edge - APIs
    • Insights - Big Data
    • Plans
  • Developers
    • Overview
    • Documentation
  • Resources
    • Overview
    • Blog
    • Apigee Institute
    • Academy
    • Documentation
  • Company
    • Overview
    • Press
    • Customers
    • Partners
    • Team
    • Events
    • Careers
    • Contact Us
  • Support
    • Support Overview
    • Documentation
    • Status
    • Edge Support Portal
    • Privacy Policy
    • Terms & Conditions
© 2021 Apigee Corp. All rights reserved. - Apigee Community Terms of Use - Powered by AnswerHub
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Create an article
  • Post an idea
  • Spaces
  • Product Announcements
  • General
  • Edge/API Management
  • Developer Portal (Drupal-based)
  • Developer Portal (Integrated)
  • API Design
  • APIM on Istio
  • Extensions
  • Business of APIs
  • Academy/Certification
  • Adapter for Envoy
  • Analytics
  • Events
  • Hybrid
  • Integration (AWS, PCF, Etc.)
  • Microgateway
  • Monetization
  • Private Cloud Deployment
  • 日本語コミュニティ
  • Insights
  • IoT Apigee Link
  • BaaS/Usergrid
  • BaaS Transition/Migration
  • Apigee-127
  • New Customers
  • Explore
  • Topics
  • Questions
  • Articles
  • Ideas
  • Badges