webserver

How to serve a website over a wifi without internet?

I want to serve a website over an open wifi connection but I do not want this wifi connection to have access to the internet. Is this possible and how would I go about doing it. I have setup websites locally and have gotten access in the browser through localhost or the IP address but I am not sure how I would go about setting up a webs...

Find out location of OpenSSL and GnuPG using PHP?

Hi, Is there a cross-platform compliant way of finding out the path to the main executables of OpenSSL and GnuPG? Obviously this would be null if the software was not installed or detected. ...

What is the difference between starting a server binding to 0.0.0.0 vs 127.0.0.1?

It seems that Rails and Django can both start up the server binding to an IP, either 0.0.0.0, 127.0.0.1, or 192.168.1.2 <-- the last one is my local IP are there other choices? It seems that 0.0.0.0 and 192.168.1.2 can let a Virtual PC on the same machine access this website, while 127.0.0.1 cannot. However, if it is just the same ...

Windows Web Platform Installer vs Manual Install?

I am going to be moving all my websites to a Windows Web Server 2008 R2 machine. I have installed it in a virtual machine to test that my websites work with it. I have noticied that there is a program called Web Platform Installer. I have used it to install a few sites but I was just thinking is it a security risk using this? Would it b...

Fire up a web browser for a folder?

Is there an easy way to fire up a web browser for a folder? eg. I am in a folder that contains a website (index.html and other files) and I want to browse the site through a browser. Is there a gem that I just launch to make this folder browsable? In this way I don't have to install nginx just for a specific folder. And when you insta...

A way to execute the backend code in the web browser instead in a web application?

Is there a way to execute the backend code (ruby) in the web browser instead in a web application (rails)? Cause I wonder why all the code should be executed in the server, isn't it bad architecture. It's like the same concept of SVN, it is very dependent of the server, rather than having a more distributed architecture like Git, every...

Terminal on the web browser?

Is there a way to put the terminal on the web browser instead, so I just fire up localhost:80 and then I'll have a terminal on it that I can use and whatever I execute it will execute on my local web server? And the outputs I want to be displayed on the web browser too, just like a normal Terminal. I'm using Ruby on Mac OS X/Ubuntu. ...

Display terminal output on web browser?

Here is my case: I want to use a web browser to connect to a Rails application that runs this example code on the server side: Dir.chdir path_typed_in_by_user system "ls -la" I want the output of "ls -la" to be displayed on the web browser. Is this possible somehow? ...

Using JMAP on Sun WebServer 6.1 Instance

I have a webapp running on Sun One WebServer and I would like to use jmap to dump the heap space memory. When I list the processes running on my server, no java processes are listed, but only webservd processes (controlled by Sun WebServer). How do I use jmap with Sun WebServer 6.1 servers? I don't have access to the jvm's pid.... The ...

Load balancing web servers: Benefits, disadvantages, mainstream?

The questions I have regarding load balancing are: Why exactly would you want to load balance web servers instead of upgrading to a new server? Is it common practice to have a load balanced setup whether it's for web servers or sql servers? Are there any disadvantages to load balancing? How is user information maintained across both ...

Git push to live server

Hi We have a website that has all its PHP/HTML/JS/CSS/etc files stored in a Git repository. We currently have 3 types of computers (or use cases) for the repository. Local developer: pull latest changes, make changes, commit to local repo, push to master server Master server: central repository, all changes get pushed to the master s...

How to read reply from socket in c?

I'm trying to write a TCP client that does the following things: 1. Establish TCP connection to webserver 2. Accept GET request command from user's console 3. Client should get a reply back from webserver after each GET request. I'm having a difficult time for the 3rd condition. I did not receive any response back from the webserver. ...

Development in IIS or Visual Studio internal webserver

Do you do local development/debugging with the internal webserver or a local iis install? I'm currently running the internal VS2010 webserver but it's so slow it hurts. I can see the page rendering in front of me... ...

Received memory warning. Level=2

hi i want to get 6 Mb (Html file size)Data from web service.Its run fine on Simulator but when i run that application on ipad its give me an error Received memory warning. Level=2. ...

Sleep will stop Nginx since it's an event-based server?

I think if you have setTimeout=1 then the node server will be unavailable for all requests in 1 second since it's event-based, non-threaded web server (correct me if I'm wrong). I've heard that Nginx is also an event-based web server. Doesn't that mean that if I have sleep 1 then it would be halted for all requests in 1 second? ...

Recommended server layout/architecture for Rails application

What is the recommended server layout for a production Rails application that is expected to receive medium (not heavy, but not light either) traffic? I'm thinking of a setup running Apache and Passenger (mod_rails). How many application servers, web servers, and database servers make sense? How should they be set up to provide redundanc...

Recommendations for Test Linux/Web Server Environment using Java

I'm a .NET developer looking do some research on my own time to better familiarize myself with Linux and Java (e.g JSP and Servlets). My plan is to install Linux on an old PC. Then, install and configure a web server capable of hosting JavaServer Pages and Servlets. I would like to create a small web site with dynamic content being pull...

Process of webserver starting

This question is kind of related to our web application and it is bugging me from last few months. So we use linux server for database, application and we have our custom built java web server. If we do any change in source code of application, we build a new jar file and replace the existing jar file with new jar file. Now update to tak...

Does apache guarantee that stdin will always have an EOF ?

AFAIK: A http POST request is sent to apache, then piped through stdin and into a CGI program. Does apache guarantee that the stdin stream will always have an EOF ? ...

Problems with TPLs after migrating PHP / Mysql Website

Hello, sorry if this question is vague, but I dont know ehere the problem is. I just had to migrate to a new server a big, crappy website from a client, that was developed by a different company and I have almost no documentation. The website is based on PHP, Mysql, and a TPL engine (the one from phpbb). I made sure to install the same...