Tag Info

Hot answers tagged

35

This is due to a bug in the Apache software that's bundled with Lion. A more recent version of Apache (beta) fixes the problem. To fix ab, here are the steps: Download the latest version of Apache $ wget http://apache.mirrors.pair.com//httpd/httpd-2.3.16-beta.tar.bz2 If 2.3.16 is not available, go to http://apache.mirrors.pair.com/httpd and get the ...


12

If you set ServerTokens to "Prod", you can reduce the header to "Server: Apache". (See documentation for full list of options.) If you want to remove the word "Apache" entirely, you'll have to modify the source.


9

When "Web Sharing" is NOT enabled it takes /usr/htdocs as the root. When you enable "Web Sharing" it will take the config file at /etc/apache2/httpd.conf. The directory will be the one specified near the following section on the file. <IfDefine WEBSHARING_ON> # # DocumentRoot: The directory out of which you will serve your # documents. By default, all ...


8

It would probably be easiest to add the vboxsf group as a supplementary group for apache. Ubuntu: sudo usermod -a -G vboxsf www-data Fedora: sudo usermod -a -G vboxsf apache This does it for me when I want to access auto mounted shared folders. You might also want to add your own username to the vboxsf group to access the files.


8

You can remove or mask the server identification from the Http-Header by using the ModSecurity open source web application firewall. Server identity masking One technique that often helps slow down and confuse attackers is the web server identity change. Web servers typically send their identity with every HTTP response in the Server ...


8

The difference is explained quite well here: libapache2-mod-fastcgi: fastcgi does not retry select() on EAGAIN In short: mod_fcgid passes just one request to the FCGI server at a time while mod_fastcgi passes several requests at once, the latter is usually better for PHP, as PHP can manage several request using several threads and opcode caches like APC ...


5

It seems as SVNParentPath is pointing directly to your repository, rather than to a directory that contains your repository. Create a folder called projects in your home folder mkdir /home/myname/projects Move your repository into projects. mv /home/myname/testrepo /home/myname/projects Change the ownership of projects to www-data. sudo chown -R ...


5

The answer is alluded to in the official 2.2 docs, in the section on performance tuning. An associated question that arises here is, of course, what modules you need, and which ones you don't. The answer here will, of course, vary from one web site to another. However, the minimal list > of modules which you can get by with tends to include mod_mime, ...


5

On Debian-based systems (which Mint is), the Apache configuration takes a different approach. Every "site" has its own configuration in /etc/apache2/sites-available. The default configuration is named default. So, try: gedit /etc/apache2/sites-available/default Don't forget to reload or restart Apache afterwards: sudo invoke-rc.d apache2 restart As a ...


5

Answered by Thomasz The solution is to add the following to your httpd.conf: AcceptFilter http none AcceptFilter https none On Windows, this has the effect of disabling the AcceptEx() API (part of WinSock), which offers some performance improvements, but probably conflicts with Comodo Firewall. Putting Comodo Firewall in "Disabled" mode doesn't help ...


4

Try running the following command: netstat -an -p tcp | grep 80 | grep LISTEN you should get a line like this one : tcp4 0 0 *.80 *.* LISTEN If you don't, your server is not started, whatever the reason is. If you are trying to access is your Web sharing, check the System settings -> Sharing -> Personal ...


4

You don't need a RewriteCond, If you just have a RewriteRule it will always be executed. Mod_Rewrite is extensively well documented, please read the friendly manual.


4

I run into the same issue. After some goggling I figured that the main issue is that Apache runs as user _www whereas your files probably are under your own user. List the content of your webroot folder in Terminal (ls -l) to see the user and its group. I found this link which provides a "better solution" instead of "changing the owner" or "changing the ...


4

The IANA has assigned 80 as the HTTP well-known port number. So browsers use this port by default. If something is listening on a different port, you have to specify the port. If you want your localhost-listening webserver to accept requests on port 80, you need to configure it to do that.


4

gitweb is only a vizualization mechanism. You don't need it to pull/push. A simple Apache server calling the git-http-backend mechanism is enough. Gitolite (please, no gitosis: it is obsolete) is an authorization mechanism, also not needed to push/pull (unless you want to restrict access to a group of users). More details in: Distributed Version Control ...


4

Are you loading PHP Module ? In your httpd.conf, check : LoadModule php5_module libexec/apache2/libphp5.so Of course, you must change module path, to where your libphp5.so is. Furthermore, you also need your entry AddType application/x-httpd-php .php If you want to use indexes with .php, modify the dir_module condition : <IfModule ...


4

The configuration file /etc/apache2/mods-available/php5.conf controls which files Apache recognizes as php scripts (based on their extensions). Be default (in PHP 5.3.2), the file contains the following code: <FilesMatch "\.ph(p3?|tml)$"> SetHandler application/x-httpd-php </FilesMatch> This affects files with the following extensions: ...


4

This is a firewall issue, so if you want to fix it quickly then temporarily stop iptables by giving the following command: service iptables stop Then check by running apache in host browser. You can also add port 80 and 443 to iptables: -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 80 -j ACCEPT -A RH-Firewall-1-INPUT -m state --state NEW -p ...


4

If I understand you correctly you want to add the ability to use php to your system. You shouldn't need to install 2 separate web servers to do this. The WAMP server should meet all of your needs as it contains both Apache and PHP. Disable your current Apache and copy it's configuration and files to the WAMP Server. This should get you back where you ...


4

Nightly builds are the latest builds that pass whatever sorts of tests that the project development has has set up. They contain the latest features, but they might also be unstable. In a production environment, you should probably not be running nightly builds of anything. The latest release will be far more stable and have much better tests. Only run the ...


3

There are a few different virtual networking modes. I recommend you use either Bridged networking when it comes to what you want. If you choose NAT, you have to configure port forwarding on your host machine in the same way as you do on your router. If you follow my advice and choose bridged, then, any virtual machine will appear to your network as a ...


3

I ran into this recently, and it turned out to be a firewall issue. The default iptables blocked any incoming port (except ssh). Here's an intro on iptables if you're not familiar with it: http://wiki.centos.org/HowTos/Network/IPTables And you need to make sure to at least allow port 80 incoming.


3

Just noticed this question as I was setting up a new PC with Apache 2.2. Here's the absolute minimum httpd.conf I managed to come up with: ServerName 127.0.0.1 Listen 8080 LoadModule dir_module modules/mod_dir.so LoadModule mime_module modules/mod_mime.so DirectoryIndex index.html DocumentRoot "C:/http_root" ErrorLog ...


3

You need NameVirtualHost set up. Open ports.conf and add: (You can also put it above the first <virtualHost> NameVirtualHost *:80 Listen 80 You can also use the ip address instead of the wildcard. Your vhost has to be formatted exactly the same as the NameVirtualHost format. If it's formatted like this: NameVirtualHost 1.2.3.4:8080 then vhost ...


3

Quite simply, you use different ports for them internally, then have the websites accessed by different ports or set up either ngnix or apache (or another proxy) to act as a proxy - say with a setup similar to this, to pass on requests to the right server. For testing, using different ports is the way to go Alternately, use 3 VMs and use seperate ip ...


3

By changing the configuration files of each server, you have have them listening on different ports. This way they will not conflict with each other returning a Port in Use error. However, I do agree with Journeyman Geek as running multiple VMs is ideal in my opinion. You could use something like VirtualBox's Export/Import Appliance feature that will allow ...


3

Have you checked that Apache's configured to listen to all IP interfaces, not just localhost? If you do a netstat you should have an apache or httpd process listening to 80 on 0.0.0.0. Sounds like Apache is set to just listen to the loopback/localhost address, so only that machine itself can connect to it. Find the config file, change the interfaces it ...


3

Apache2 makes this very easy with the additional tools packaged with it. If you have the apache2-common package installed, you can enable the mod_ssl module (required for HTTPS) in one easy command: sudo a2enmod ssl Apache2 also includes a command to help you easily generate self-signed certificates called apache2-ssl-certificate. Generate your ...


3

.htaccess is used for setting access to a site. its not what you need - you need to look at mod rewrite rules or vhosts and setting the vhost document root to /var/www/blog the best starting point, naturally is apache's own docs, which i have linked to


3

My preferred way of backing up a remote virtual server is to simply copy files - the kernel is on the host anyway. Of course, you will have to exercise some care when restoring, and it may not be possible to do a full restore (unlike a disk image). On the other hand, it's easier to migrate to another server, such as a local one for testing. Now, downloading ...



Only top voted, non community-wiki answers of a minimum length are eligible