Can subdomains point to different server platforms? [closed] - php

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.

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?

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.

PHP - Subdomain for each user [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
I have purchased a domain name which I have assigned an a name record to my Ubuntu web server. On the server each user has their own profile located at /var/www/user, each user has a sub directory. I need a sub domain for each user in the /user directory.
I started by giving the domain a wildcard '*' a name record which points to the server (as well as # (obviously)). Then with a Virtual Host I use the wildcard to check for any requests to a sub domain and set their document root to a redirect directory /var/www/redirect. So essentially I'm filtering out sub domain requests and then sending them to the redirect directory to explode the sub domain they requested and forward appropriately.
My problem lies with trying to get the original sub domain they requested so I can explode the string and find the user they need and redirect. Does anyone know how I can do this? Should I pass it as a GET variable from Virtual Host or is there a better way?
If this sounds like a bad design I'd highly appreciate it if you could suggest a better one!
The original sub domain they requested is in $_SERVER['HTTP_HOST'].

How to setup remote php on my server? [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
I made a PHP based webapp and a customer of my needs it on his website. Now I want to put the PHP code on my server and let the customer's website include it remotely. How do I set this up? And can I restrict the acces when the customer doesn't need the app anymore and is it secure?
There is nothing such as remote PHP. Doesn't work that way. However you can setup some API to communicate between the two servers on backend. You'd still need both servers to be capable of this interaction, that means both servers still need to be fully functional. And if your code on client's server can talk to your API on host server, then they can take that code and see how it interacts with your host and replicate it.
A very simple solution would be to put the PHP-generated content from your website in an <iframe> on their website.

Categories