Other way to access http://domain:port - apache

I currently run an Apache server with Ubuntu 14.04, and also have a TOMCAT server and a Calibre server (running on port 8080 and 8081 respectivly).
I can reach them throught firefox by typing
http://localhost:8080 // For TOMCAT
http://localhost:8081 // For Calibre
I'd like to know what should I tweak or set to be able to reach them by typing
http://tomcat.localhost/ or http://localhost/~user/tomcat
and
http://calibre.localhost/ or http://localhost/~user/Calibre
(I'd like best the first option if possible)
Is this possible to do this without installing a DNS server? (I can use it if needed, but I'd be happier not to use a technology I'm not comfortable with)
I tried a PHP include or redirection in localhost/~user/Calibre/index.php, but this is verry inelegant (and I couldn't get it to work properly anyway)
The goal is to have it used on different computer on my local network (so cross navigators and cross computer compatibility is a better solution, but I'd be happy if it work only on my computer for the moment).
Any help would be greatly appreciated.
Thanks a lot

You should create a virtual host to use multiple domain..Follow the article to archive this..Let me know if you have any queries.
https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-ubuntu-14-04-lts

Related

Connecting UCM with Apache server on another machine

I am trying to connect to my content server(UCM) using apache server installed in another machine.
In more short notation ,i want to use apache server of another machine to login to my system's content server (UCM)
Any kind of help would be of great use
I got my answer and I thought it would be nice to tell this to others too,
so I found the following link
https://docs.oracle.com/cd/E12839_01/core.1111/e12037/contentsvr.htm#BGBDDCFF
Here in section 9.4 , you can go through what is to be done.
For avoiding confusion, in this section WCHOST is local machine and WEBHOST is remote one.
Thanks

Setting up a server at home for Android app

I'm currently developing a simple multiplayer game app for Android and I need to have a server to which the users connect to.I'd like to set up this server at home. I have a dynamic IP address,so someone told me I'd have to set up a local DNS server or something like that. I'm not even sure where to start with setting up a DNS server, everything I found was for windows 2003 and linux. Nothing for XP? If any one can shed some light on this matter, explain a bit how setting a DNS works or supply a link with "setting up local DNS for dummies" I'd be grateful.
Also, besides setting up a DNS so I can find the server every time, how about the communication with it? I'd like for it to be as secure as possible. Another friend told me something about communicating via SSH, which is again something I am not accustomed to.
So if someone could explain some of these concepts or offer some GOOD link for that that would be great. I'm very confused :)
Thanks
EDIT
Btw, the server is in Java and currently i'm communicating from Android emulator to the server (which is localhost) via sockets.
That's not a simple thing you're trying to achive. First you have to create your own server on your machine (maybe you're done with this step), then you have to make this server available for everyone. At this point, I suggest the DynDNS service:
http://lifehacker.com/124804/geek-to-live--how-to-assign-a-domain-name-to-your-home-web-server
A local DNS by default help you to find your own servers by name instead of IP address, but if you have a usual internet service with dynamic IP, you need an external DNS provider to route your clients to your server. (read the link above for the full explanation)
About the SSH security: Yes, you will need some security settings indeed, but that could be a very hard problem sometimes. You can set your server to work with SSL sockets, which is a part of the core J2SE release. It will work against some sort of attack, but none against others. Running your own server will raise unexpected numbers of problems, prepare for that.
As already stated in the comment to your post, something like http://www.no-ip.com or http://www.dnsdynamic.org would solve the issue with your dynamic ip - You do not need a local DNS server.
With regards to communication, i believe that SSH is linux/unix only. Since you wish to use Windows for the server, FTP or Remote Desktop would be best. Choose FTP if all you want to do is manage your files, choose remote desktop if you wish to manage your entire computer. I've had good results with the FileZilla FTP server on windows (http://filezilla-project.org/)
With that said, i think you would be better off buying a simple and cheap hosted service instead of using your own computer - you can get something that can run your java app for $5/month some places, and compared with the annoyance of having a local server running in your house, it might be worth it.

How can I set up a "remote pair-coding" environment linux to linux?

I did some research on how to enable a pair-coding environment remotely so someone else on their MacOx/Linux box could view my screen (I code using vim + the rails plugin).
I read Evan Light's blog on his set up here, but I don't have an open source router:
http://evan.tiggerpalace.com/articles/2011/10/17/some-people-call-me-the-remote-pairing-guy-/
So the SSH is tricky since I don't have a sticky IP.
What is an easy way to do it?
So the SSH is tricky since I don't have a sticky IP.
There's a bunch of tools to get you a DNS name to point towards a dynamic IP (some of them are even free). I've used No-IP.com, but not for several years (and have no affiliation). You don't necessarily need to have an open-source router - you can run the daemon on your computer, and then use port-forwarding to get incoming SSH connections to your computer.
You should take this over to SuperUser.com - it's probably more on-topic there.
Not for pair-programming so far, but I usually do my screen-sharing through TeamViewer. It is extremely easy to set up, and passes through routers like hot knife through butter. However, it transfers the GUI, so it can be somewhat slow (depending on your connection).

Server Setup: Based on Apache and Tomcat needs

I'm trying to setup a server based on our needs for a new website. Basically, I need to build a website based on social engine, and according to the platform's requirements (found here: http://www.socialengine.net/support/documentation/article?q=152&question=SocialEngine-Requirements) it requires the webserver to be Apache based.
Now my issue comes with the addition of a web application that needs to be included in the site. The web application requires the server to be capable of Asynchronous Request Processing, and is currently only supported by Tomcat or GlassFish.
I found a couple tutorials such as this one http://www.serverwatch.com/tutorials/article.php/2203891/Integrating-Tomcat-with-Apache.htm that explain how to "integrate" Tomcat into Apache. Would a server running Tomcat alone be able to handle the applet needs as well as serve the Apache (assuming HTTP) needs from the Social Engine platform? Are there any hosting providers any of you would reccomend?
Although I've done alot of front end stuff before, this is the first time i have to deal with any of the back end details, so my knowledge of server side functionality is really garbage. Please let me know if I'm not asking the right questions.
Thanks
You wouldn't really be able to use Tomcat for both apps, since the other one needs PHP. It's pretty common to have both Tomcat and Apache running on the same server. You might want to look up more recent documentation on mixing them, even this but definitely have a look at mod_proxy_ajp.
What's the other application? It's a little tricky to set up Asynchronous Request Processing if you are new to server apps, but there is also a lot of documentation, so if you're game, you can probably figure it out OK. You might also want to see if that app would work with node.js (hosting info here)
If you want to set it all up yourself, you could get a virtual private server from Rackspace Cloud or similar host or get a shared host that has the required apps already set up, which would limit your ability to customize the environment and may require 2 hosting plans, but would be easier to set up. It also somewhat depends on if both apps need to be on the same machine for any reason and/or on the same domain.
A regular LAMP stack will run SE4 just fine, however, you will need to do some tuning to get the page loads under 3 seconds. You will want to remove any Apache modules that you aren't using with a2dismod. For instance, if you're not using any Ruby on the site, a2dismod ruby. This will help get memory usage under control. APC is a must.
For a much more in depth read on tuning php/apache, please read this: Performance tuning on Apache, PHP, MySQL, WordPress v1.1 – Updated

Authentication between Windows and Linux servers on two hosts but same domain - possible?

We have an issue that I can't wrap my head around regarding possible solutions.
We have a site that runs off of a Dot Net Nuke CMS, with a custom asp.net CMS powering a reviews engine aspect of it too. This is hosted on a Windows server setup on SQL servers and has its own user registry.
We are looking at a script for an add on revenue offering, and the best of breed we have found happens to be Linux-based using MySQL servers. There are some other options, but none are nearly as robust as the Linux based one.
Our quandry is two-fold:
1) If we use this script, we will need to host a linux server with a different host service (ours only does windows servers). Both server sets will point to the same domain (www.mydomain.com) and have communication between the MySQL DB on the Linux machine and the SQL DB on the Windows machine.
Is this possible...and problematic? Or is this a fairly straightforward issue to solve?
2) The larger issue if the first is a hurdle that can be cleared is we would want to share our user registry between the two databases, so the user would not be logging into each DB when going between the two environments.
This issue is more complex than my understanding of authentication and databases so I'm hoping someone can help me out or at least start me in a good direction for research.
We could go with the other script routes, but they simply don't offer the functions or features of the more difficult to implement code.
OK, you can always run MySQL on the Windows box and install cgywin to run the script in a more unix type environment. Or run xampp on a different port: http://www.apachefriends.org/en/xampp.html