url mapping in amazon ec2 - php

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed yesterday.
Improve this question
I am working on a site with amazon EC2 instance, We have created two instance lets EC1 and EC2. on EC1 we have our website which we have mapped with www.example.com. and another instance EC2 has our main application. now what we want is that if anyone type www.example.com then it should be redirected to EC1 instance and let if he types www.example.com/anyThingHeTypes then he should be redirected to EC2 instance. Is it possible with Amazon instances? if Yes then please help us guys

This is much easier to do with subdomains. Since DNS can send traffic directly to the second instance. If you want to do it with a folder, than you need to configure your webserver to be a reverse proxy to instance 2.

Related

How to host an intern webpage and mysql data base? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 5 years ago.
Improve this question
I am looking for a way to host a webpage and a mySQL data base but in internal network, like an intranet for example.
When I was working on the website and the database, I used MAMP to emule a server on my PC but this work only on one PC. I'm looking for a way to share this website on different PC but only on my internal network.
Sorry for bad english. If there's something not understandable, please ask.
If it's a "repost question", please lead me to the answer I'm looking for. If you need more information, be pleased to ask them.
Thanks.
Unless it is very sensitive I would go for an external webhotel like godaddy.com or similar in your country. And add password protection on the site.
If you want to host it you need a computer that is on 24/7 and install your setup there, but then you are required to handle hardware failures, updating the software and so on.
MAMP and others should work. You might be visiting http://localhost:1234/index.php on your machine so on your network on other device, try http://yourmachinename:1234/index.php. As long as the ports are open, this should work.

Show content from internal ip's on a custom sub domain ?

Closed. This question is not about programming or software development. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 days ago.
Improve this question
I'm trying to recreate what Amazon, Rackspace, etc. have done (sort of) where :
A. Virtual Machines can be start pretty much via a php command(post, socket, whatever)
B. Each machine is associated with an account of sorts, so it also has it's own little domain.
"B" is where I would like help. What are some techniques to map vm's to a custom sub domain?
I can currently start a vm using vagrant, but I'm not sure how to display it's content (make the assumptions these are web server vm's)
I also know you can map something like "bobspickles.domain.com" to "domain.com/action.php?name=bobspickles" , but I'm not sure if I can use this technique to render whatever internal ip address's content as a result... help?

Can subdomains point to different server platforms? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
I have a website which is developed using asp.net. I have created a new module which is in PHP. Without disturbing the main site I need to host this site.
Is it possible to host like that or not?
Example:
www.vidhyaprakash.com - aspx
account.vidhyaprakash.com - php
Sub domains like domains are just IP addresses with names (or rather names that point to IP addresses). The DNS can be configured to point to any IP address.
You may need to ask your provider to do this for you. They set up a CNAME.
I personally have my web hosting on my main domain, but I have a subdomain which points to a gaming server.
EDIT:
A trick for example, is to have a domain or sub domain which points to a DYN server, which in turn points to a server with a dynamic IP.

Static IP address of Openshift app [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 9 years ago.
Improve this question
How to find static IP address of my non scalable app(free tier). I need it for My dns management A(HOST)entry field.any rhc window command
If you're trying to set Custom URL name for your OpenShift app, I suggest editing CNAME record instead of hard-coding the A record.
Edit the CNAME record of your domain to point to <app>-<namespace>.rhcloud.com
Run rhc alias add <app> <domain> command (OpenShift creates new VHost for your domain)
Wait for the DNS to get propagated (how long does it take)
Read Custom URL names for your PaaS applications (host forwarding and cnames) blog post for more information.
If you really want to know the IP address of your app, you can print it using OPENSHIFT_<cartridge>_IP environment variable:
rhc ssh <app> 'echo $OPENSHIFT_PHP_IP'
See the full list of environment variables exposed by OpenShift platform.

Home automation with php [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I want to do simple automation in my home like on/off lights to explore more about automation. I am a software engineer so I don't know much about hardware to use in this process. I want to do this task in php. It would be very great for me if anybody can help me to achieve this task. Please suggest me any other language if PHP is not suitable for this task.
I did this years ago working with a vendor at CES called Exceptional Innovations. They have small devices you can place between the plug and appliance that connect to home network and you can access via web service.
I'm not sure if they still do it but found this article: http://www.cepro.com/article/using_web_services_to_control_devices_through_vista_media_center/
It was Life|ware WSD. You might check with other home automation vendors and see if they expose an API, but note the media server in your home will likely need a static IP address for Internet connection, then you will need to route requests on desired port to that computer in your router configuration if you want to access from the outside world.
If you are coding in-house, then your laptop/pc will be connected to same network as media server so you can just reference it via interal IPs. If Linksys router, for example, it might default to 192.168.1.3 (assuming .3 is address assigned when device requested IP).
PHP is a serverside scripting. You need to use some other language such as C. Unless you want to switch the lights of remotely (incase you forgot to do it :P ).

Categories