# How to host/run Galaxyserver-NGS in AWS IP or in a webserver IP

**URL:** <https://help.galaxyproject.org/t/how-to-host-run-galaxyserver-ngs-in-aws-ip-or-in-a-webserver-ip/3453>\
**Category:** Uncategorized\
**Tags:** devops-administration, galaxy-cloud-legacy\
**Created:** [April 17, 2020, 4:11pm UTC](https://help.galaxyproject.org/t/how-to-host-run-galaxyserver-ngs-in-aws-ip-or-in-a-webserver-ip/3453 "2020-04-17T16:11:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rajkishore\_Mohapatra](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/rajkishore_mohapatra/32/1440_2.png) [@Rajkishore\_Mohapatra](https://help.galaxyproject.org/u/Rajkishore_Mohapatra)\
**Post date:** [April 17, 2020, 4:11pm UTC](https://help.galaxyproject.org/t/how-to-host-run-galaxyserver-ngs-in-aws-ip-or-in-a-webserver-ip/3453/1 "2020-04-17T16:11:52Z")

</div>

would be thankful if anyone can help me to address my issues. I was asked to deploy GalaxyServer in AWS (CetnOS) and I have installed and Galaxy is running locally successful. But, galaxy is running in [http://localhost:8080](http://localhost:8080) and I want galaxy to get hosted on AWS or server IP. Assume, IP as 1.2.3.4, so it will run like, [http://1.2.3.4:8080](http://1.2.3.4:8080) and it should run on any system across internet with this IP.

I tried, looking into all config files changing files putting AWS IP, host = 1.2.3.4 (IP), but while running, ./run.sh galaxy is running same on localhost. It is not responding. Files where I have changed host IP are, **galaxy.yml.sample** , **galaxy.ini**.

O/p showing galaxy running in locahost

> 7faae4122c80\>galaxy.queue\_worker INFO 2020-04-16 17:08:25,782 [p:22786,w:1,m:0] [MainThread] Binding and starting galaxy control worker for main.web.1 galaxy.web\_stack INFO 2020-04-16 17:08:25,792 [p:22786,w:1,m:0] [MainThread] Galaxy server instance ‘main.web.1’ is running
> 
> **Starting server in PID 22786. serving on [http://localhost:8080](http://localhost:8080)**
> 
> galaxy.model.database\_heartbeat DEBUG 2020-04-16 17:08:25,828 [p:22786,w:1,m:[database\_heartbeart\_main.web.1.thread] main.web.1 is config watcher

---

<div class="post-metadata">

**Author:** ![marten](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/marten/32/6_2.png) [@marten](https://help.galaxyproject.org/u/marten)\
**Post date:** [April 17, 2020, 4:34pm UTC](https://help.galaxyproject.org/t/how-to-host-run-galaxyserver-ngs-in-aws-ip-or-in-a-webserver-ip/3453/2 "2020-04-17T16:34:14Z")

</div>

In your setup you generally want to use proxy in between web traffic and Galaxy. So leave Galaxy running on localhost and set up e.g. [NGINX](https://docs.galaxyproject.org/en/master/admin/nginx.html) that will listen on the network for requests and proxy the ones for Galaxy to the right port.

> Files where I have changed host IP are, **galaxy.yml.sample** , **galaxy.ini**.

None of these are the right place to choose I believe. You should have `galaxy.yml` file in your configuration folder.

When you have that [file set up](https://galaxyproject.org/admin/#setup-admin-user) you can check this section in the sample:

```yml
  # The address and port on which to listen. By default, only listen to
  # localhost (galaxy will not be accessible over the network). Use
  # ':8080' to listen on all available network interfaces.
  http: 127.0.0.1:8080

```

So if you want to avoid the proxy for some development reasons you can do so by changing that value to `:8080`. I would only recommend this for throwaway Galaxies, that are not run in production.

---

<div class="post-metadata">

**Author:** ![Rajkishore\_Mohapatra](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/rajkishore_mohapatra/32/1440_2.png) [@Rajkishore\_Mohapatra](https://help.galaxyproject.org/u/Rajkishore_Mohapatra)\
**Post date:** [April 18, 2020, 4:21am UTC](https://help.galaxyproject.org/t/how-to-host-run-galaxyserver-ngs-in-aws-ip-or-in-a-webserver-ip/3453/3 "2020-04-18T04:21:00Z")

</div>

Hi, No I don’t want to use proxy and I haven’t said about it also. My concern is, I want to host galaxy in AWS (awsip:8080) and make it accessible everywhere that url. For Eg: , [http://awsip:8080](http://awsip:8080). Here, awsip = 1.2.3.4 (aws instance ec2 ip). Please share how to proceed with the same.

thanks  
raj

---

<div class="post-metadata">

**Author:** ![gbbio](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/gbbio/32/366_2.png) [@gbbio](https://help.galaxyproject.org/u/gbbio)\
**Post date:** [April 18, 2020, 9:10pm UTC](https://help.galaxyproject.org/t/how-to-host-run-galaxyserver-ngs-in-aws-ip-or-in-a-webserver-ip/3453/4 "2020-04-18T21:10:04Z")

</div>

Did you followed up on any of this?  
[https://www.biostars.org/p/432922/#432991](https://www.biostars.org/p/432922/#432991)

Port is open? Http in the config is set to 0.0.0.0?

---

<div class="post-metadata">

**Author:** ![marten](https://sea2.discourse-cdn.com/flex020/user_avatar/help.galaxyproject.org/marten/32/6_2.png) [@marten](https://help.galaxyproject.org/u/marten)\
**Post date:** [April 21, 2020, 8:44am UTC](https://help.galaxyproject.org/t/how-to-host-run-galaxyserver-ngs-in-aws-ip-or-in-a-webserver-ip/3453/5 "2020-04-21T08:44:40Z")

</div>

I shared with you how to do that in the last two paragraphs of my post.
