How to access an Orchard multi-tenant site externally on the same network - windows

I've got multi tenancy set up on my Windows 7 machine using Orchard 7.1 and IIS 6.1 which I can access locally no problem.
They relevant sites are all added within the bindings of the applicationhost.config file, as well as the computers' host file and therefore show up as they should by accessing the url.
I have previously had a single tenant set up on my machine that meant I could access on my network, which was done by adding the site to IIS then binding to localhost/my ip address etc.
However the issue I am having is how to access these sites via a mobile device/another computer (on the same network) now that I have set it up for multiple tenants.
Any help appreciated
Liam

You'd need some sort of naming service inside your network, something like Bonjour.
Short of that, I guess you'd have to configure those other machines one by one so their hosts files point to the server.
One final possible possibility may be to simply use DNS. There is no reason why you couldn't use a domain that you control to map several names to local addresses such as that of your server.

Related

Hosting multiple websites on the same IP address (different machines)

So, my setup is:
Windows server - Already hosting a website in IIS (web1.example1.com)
Windows 10 PC - Want to host another website using Xampp (web2.example2.com)
I don't own either of these domain names, only the subdomains (not sure if this matters)
I have got this to work by setting up another site in IIS then using a reverse-proxy, however, I ran into a problem using this method. I'm using Laravel on my windows 10 PC, and I when try to access my resources it uses my internal IP rather than the domain name (therefore doesn't work externally). I can get around this by using URL::forceRootUrl() in my routes/web.php however then I can't redirect to other sites (need to use OAuth).
I have tried searching around for solutions that will let me use both of these, but I'm starting to think using a reverse-proxy just isn't going to work for what I want.

create php web service and access to the internet

I have recently installed PHP, MySQL Server, and Apache web server. I played around with some PHP scripts locally on the PC to insert some entries to MySQL Database.
Noob question so please be patient with me:
How do I get my web service out to the internet, by self hosting? Say I already have a domain for example mydomain.com How do I make it so that when someone not within my network can access mydomain.com/something and can send some data so my server gets it and do anything with that data?
Webhosting
You have to have some form of webhosting. You pay for hosting and you can upload your PHP files to their servers. They will usually also have database servers you can use.
Your domain name has to point to those servers via DNS so the internet can reach your application. I'd suggest you search the internet for popular hosts that provide the tools your need for this.
Self hosting
Another possibility is to open your network up to the world, but this is not recommended unless you have network administration experience due the security trouble that comes with it.
In short: forward a port through your router to the machine running your application. The website portforward.com has instructions on how to do this but keep in mind that misconfiguration could lead to vulnerabilities in your network.
In order to make you site public
1. you need host
2. you need domain
there are bunch of hosting sites you should get one first.
This link explains very well about self hosting
https://www.boutell.com/newfaq/creating/hostmyown.html

How Can I Get My Flask-based Web App Hosted Online?

I'm using the Flask microframework to run the Python back-end of my site with an SQLite database. It all looks fine and well running on my Ubuntu machine. But how and where can I actually host it online with a proper URL as in: "https://appname.io"?
Do web hosts usually provide Linux and SSH capabilities?
The 'proper URL' you describe is a domain name, and they can be purchased from many online retailers you'll discover when you Google it.
To host your site you will need an actual server host. Many retailers that sell domain names also sell web hosting, but not all. Essentially, every host will provide you with SSH, FTP, MYSQL and anything you may need to host your site. Linking your domain name is normally done automatically if you're purchase both your domain and hosting from the same retailer. However, if purchasing separately you will have to enter the DNS server information to resolve your host.
Try reading this article to get a good idea of how to move your project to a host. This article is for WordPress, but you should be able to get the general idea on the process.

Accessing my Local Host from different computer in a different network

I'm current using Xammp,and have created a website in the htdocs. I want to know if i can access this from another computer (not in the same network) and work on the site from that other computer.
You can do this by using the dynamic dns service provided by noip.com. Download the noip client and setup an account in it (try Googling on it).
After that you must edit the conf files in XAMPP to allow outside network to communicate with your network.

Different domains to different pages in IIS7

I have a Default Web Site and another web application (let's call it Application2) inside the Default Web Site in IIS7.
I have 2 registered domain names, let's say www.example.com and www.example.net.
I would like to configure things that when I open www.example.com I get Default Web Site, when I open www.example.net I get Default Web Site/Application2.
www.example.com -> Default Web Site
www.example.net -> Default Web Site/Application2
How can I do that?
First you need to decide if your going to use Name Based or IP Based hosting.
IP-Based uses unique ip's to determine which virtual host it will serve and Name Based will actually use the host header which is sent by your client browser.
So let's see two scenarios:
Scenario # 1 (ONE IP TO SHARE)
You have a server with only one IP, could be either private or public as long as the domains you are serving are properly configured in the dns serving you internally or your client externally (NAT).
I suggest that for the sake of this tutorial you stop the default website. Ok.
You will set up one site in II7 and name it accordingly. Go to the right hand side of the manager and look for "Bindings" under actions menu; making sure you have the new site selected on your left pane. Now under "Site Bindings" select the ip address you will be sharing between the sites (name based hosting). Under "Hostname" enter domain # 1 "www.example.com", hit ok.
Follow the same procedure above with the other domain or domains, making sure they have diferent hostnames and same ip's.
That's it. You will now be able to start those sites and run them at the same time.
The same principle above applies if your using the "Default Site". "Default Site" is just a name MS gave the default created one.
Scenario # 2 (MULTIPLE IP TO SHARE)
If you have either some private or public ip to spare, or at least until you do the exercise the only diference here is that sites you will set up and don't have to specify the "Hostname" per each site, as this is basically done in the DNS zones itself. The sites will respond for any request made to those ip's on port 80 regardless.
When will you need to use multiple Ip's to serve websites. Well it all depends.
Some reasons are: Network Isolation (Security), Applications which don't work well under name based hosting, SSL Certificates Bindings 443(PRE II7), and mostly complete control over site. There are of course more reasons, but I'll let others write a bit also.
Have fun.
Edit... upon further investigation I found that if you can set up multiple sites and run them simultaneously. Just need to stop and start the sites after setting the host values to get them to both run at the same time.
Original post:
The straight-forward way to do this would be to add another application by opening IIS and right-clicking Sites then select Add Web Site. In there you can specify the physical path of Application2 and also set the "host" to "www.example.net" which will filter all those requests to your second site. Any requests that don't match "www.example.net" will still go to the default web site.
That approach will work fine on Windows Server using IIS, but on Vista's IIS7 it won't work since you can only have one site running at a time. To start the second site, you'd first have to stop Default Web Site.

Resources