webserver

Apache, PHP, MYSQL on Windows 7

What is the best (and easiest) way to set these up on Windows 7? I have tried Xampp and WAMP but all I get after installing them is a blank local host. So I create a php info file using the following code: <?php phpinfo(); ?> Put it in the httpdocs folder, call it using http://localhost/info.php and I get a 404 file not found erro...

Best PHP Webserver for Development

I'm starting to work with PHP more these days and I've been wondering what the best PHP webserver might be for a dev environment. Ideally, it would be easy to build, live only in the project deps directory and be easy to configure. Also, decent performance would be a plus. In python land, werkzeug would be an equivalent of the type of ...

IIS Developer Express on XP using Visual Studio

As of recently there is a express edition of the IIS 7. It is bundled with this crazy new tool Web Matrix (http://www.asp.net/webmatrix). A real IIS instead of the development server in Visual Studio would have many advantages. Does anybody know, if this IIS edition can be separately downloaded ? Can it be installed on Windows XP (Pro...

jetty 6 rewrite handler not working web server

I cannot make rewrite handler to work on Jetty server 6.1.24. Here is my example in Scala: val server = new Server(8080); val contexts = new ContextHandlerCollection(); val rewriteHandler = new RewriteHandler(); rewriteHandler.setRewriteRequestURI(false); rewriteHandler.setRewritePathInfo(false); rewriteHandler.setOriginalPathAttribute...

Why don't most CMSs write static .html files to disk?

For a basic CMS that does not require dynamic functionality like comments, why not write static .html files to disk? Then a high-performance, static file, web server like nginx could be used to serve the files. This would theoretically deliver the highest performance web site possible. EDIT: "Basic CMS", in my mind, is something a compa...

Compare two websites and see if they are "equal?"

We are migrating web servers, and it would be nice to have an automated way to check some of the basic site structure to see if the rendered pages are the same on the new server as the old server. I was just wondering if anyone knew of anything to assist in this task? ...

Intranet website with Joomla ?

Hi guys, my company wants to set up a small intranet portal on LAN. We are about 100 users at max. I am thinking about Joomla on a windows server environment with XAMPP. Just to be safe, is XAMPP efficient for serving about 50 to 100 users ? Does it have some connection limits ? Also how about using it as a webserver for a small intrane...

LAMP web server file permissions

Hi SO, I've got a LAMP webserver running my homepage (index.html in var/www/). I'd like to know in general how to set my file permissions so that browsers can't access anything besides the html/php files I want to show. Right now I've sort of accidentally chmodded everything to 777. I understand that .htaccess only protects the www fo...

Can Only Access Site Via Localhost

Have a have a Windows VPS using Plesk 9. Until today I have been using the http://myIPaddress:8443 method of accessing Plesk Panel but now I can't access via a browser. This is the Google Chrome error (Error 101 (net::ERR_CONNECTION_RESET): Unknown error). If I use an RDC connection and open a browser window and connect via http://loc...

How can I properly load test a new component on a webserver?

We're implementing a new solution in our classic ASP environment that's using COM interop to instatiate a .NET component to do some work. The solution is working great and our team lead wants to make sure that it will perform well under load since this is the first time we'll be working with .NET components on our site. What do I need ...

Python/Web: What's the best way to run Python on a web server?

I am leasing a dedicated web server. I have a Python web-application. Which configuration option (CGI, FCGI, mod_python, Passenger, etc) would result in Python being served the fastest on my web server and how do I set it up that way? UPDATE: Note, I'm not using a Python framework such as Django or Pylons. ...

What does it mean at the top a .cgi file "#!/usr/bin/env php" versus "#!/usr/bin/php"?

I usually see #!/usr/bin/php or #!/usr/bin/perl at the top of a CGI file. How is a #!/usr/bin/env php or #!/usr/bin/env perl different from the first 2 lines? They work as well. ...

Tomcat Protect files

dears does anyone knows if tomcat is able to password protect file (like apache .htaccess )? i mean when user request a file from tomcat webapp its prompt a dialogue to enter user-name and password and made this using configuration. or protect the file depend on its IP address . hope someone can help me ? regads ...

Problems with Tornado Web Server

Hello, I am using OSX 10.58 with the following versions: curl --version curl 7.16.4 (i386-apple-darwin9.0) libcurl/7.21.0 OpenSSL/0.9.7l zlib/1.2.3 Protocols: dict file ftp ftps http https imap imaps ldap ldaps pop3 pop3s rtsp smtp smtps telnet tftp Features: IPv6 Largefile NTLM SSL libz sing /Library/Python/2.5/site-packages/setupto...

Implementation of a web-server

I had like to implement my own web-server in pure Java the web-server should support only static resources (i.e. html, js, css, pics, movies etc..) Can you recommend a tutorial or an article on how to implement such a thing? should I use few processes or a thread-pool or should I consider a loop-event oriented like NodeJS? I know there...

What is a clean way to use a "/" in a part of a URL.

In an MVC framework, I have a model with an "identifier" field. This field can be whatever is used by the user as their unique identifier. I then use this identifier field in URLs to access the relevant resources. /people/<identifier>/ In one such case, the user is using identifiers of the format 00/000. The quick among you will have ...

Has anyone tried running IronRuby.Rack through Kayak?

I recently learned about kayak, an HTTP server written in C# (i.e. not through IIS). I'm wondering if anyone has tried hooking up IronRuby to run Rack through this platform? ...

Tomcat Restrict access by IP address

dears does anyone knows if tomcat can restrict access to certain application by IP address (like apache .htaccess )? hope someone can help me ? regads ...

Http Listener doesn't work on Port 8080 or other ports (works only on port 80)

Hi, I wrote a simple WebServer using HttpListener class (.net 2.0) It seems that It doesn't work on port other then 80. When i sniff the transport to my server i can see the Syn packets on Port 8080 arrive to the server, but there is no Syn/Ack response, although when i sue netstat -a i can see that the server is listening to port 808...

Upload large files using Ruby

I'm wondering what is the best pattern to allow large files to be uploaded to a server using Ruby. I've found Rails and Large, Large file Uploads: Looking at the alternative but it doesn't give any concrete solutions. I don't want to use Rails since I'm working on a simple upload server that'll run in standalone mode. I'm guessing tha...