lichen19853
lichen19853

Reputation: 1410

Is it possible to create myapp in GAE, but disable access from myapp.appspot.com?

  1. If I want to deploy anything on Google Apps, I'll have to create an application in Google App Engine, is that right? Is there a way to use FTP like in other web hosting services?

  2. If I have myapp in GAE, and I already let myownsite.com to use this app. But I don't want anyone else to use this app on myapp.appspot.com, how can I do it?

Thanks in advance!

Upvotes: 1

Views: 297

Answers (2)

okrasz
okrasz

Reputation: 3976

  1. You will need to upload your application. There is no FTP access for that as far as I know, but the GAE SDK contains a commandline tool to do that. You can also do it from IDE.

  2. There is always an associated myapp.appspot.com domain with your application, so no one will take it. But you can also use your own domain (but not for SSL!). But you cannot also block access through myapp.appspot.com, but in Java you can create a filter that will redirect all requests to your custom domain. And keep in mind you cannot use naked domains (without www) in GAE.

Upvotes: 0

Charles Ma
Charles Ma

Reputation: 49141

Perhaps not the best solution, but you can use self.request.headers["HOST"] in your handler to see which domain the request was requested to and redirect the user based on that.

Upvotes: 2

Related Questions