Kategoriarkiv: Apache

Hacking apache2 header-version

The version header is defined in ./include/ap_release.h in the apaceh2 source tree if you want to limit the number of information there is a option for that in the httpd.conf More info later if required

Udgivet i Apache, Knowledge Base, Old Base | Skriv en kommentar

Virtualhosts in apache

To activate virtualhosts write, in the end of the httpd.conf : NameVirtualHost * And after that you can add virtualhosts with this syntax, just make sure the dns names points to your servers ip: <VirtualHost *> Documentroot /home/subdomain ServerName subdomain.cyberfamily.dk … Læs resten

Udgivet i Apache, Knowledge Base, Old Base | Skriv en kommentar

Apache 2 og PHP 4.3.1

wget http://www.php.net/get/php-4.3.1.tar.gz/from/dk2.php. wget <apache> tar zxf httpd-2.0.44.tar.gz tar zxf php-4.3.1.tar.gz cd httpd-2.0.44 mkdir /www ./configure –prefix=/www –enable-so make make install cd ../php-4.3.1 ./configure –with-apxs2=/www/bin/apxs –prefix=/www/php make make install cp php.ini-dist /www/php/lib/php.ini echo ‘LoadModule php4_module modules/libphp4.so’ >> /www/conf/httpd.conf echo ‘AddType application/x-httpd-php … Læs resten

Udgivet i Apache, Knowledge Base, Lamp, Linux, Old Base | Skriv en kommentar