Tag Archives: apache

#apache #httpd namevirtualhost, virtualhost and servername

in #apache #httpd to setup virtual hosts use tyhe directives namevirtualhost, virtualhost and servername

NameVirtualHost *:80

<VirtualHost *:80>
 ServerName site1.example.com
 DocumentRoot /var/www/site1/public_html
 <Directory "/var/www/site1/public_html">
  allow from all
  Options +Indexes
 </Directory>
</VirtualHost>

<VirtualHost *:80>
 ServerName site2.example.com
 DocumentRoot "/var/www/site2/public_html"
 <Directory "/var/www/site2/public_html">
  allow from all
  Options +Indexes
 </Directory>
</VirtualHost>

<VirtualHost *:80>
 ServerName site3.example.com
 DocumentRoot /var/www/site3/public_html
 <Directory "/var/www/site3/public_html">
  allow from all
  Options +Indexes
 </Directory>
</VirtualHost>

to get a list of your vhosts type

httpd -S

see also

Apache OpenOffice.Org™ 3.4

http://www.openoffice.org/news/aoo34.html

The Apache OpenOffice Project today announced the availability of Apache OpenOffice™ 3.4, the first release of OpenOffice under the governance of the Apache Software Foundation.

Apache OpenOffice is the original open source office productivity suite, designed for professional and consumer use.

“With the donation of OpenOffice.org to the ASF, the Foundation, and especially the podling project, was given a daunting task: re-energize a community and transform OpenOffice from a codebase of unknown Intellectual Property heritage, to a vetted and Apache Licensed software suite,” said Jim Jagielski, ASF President and an Apache OpenOffice project mentor. “The release of Apache OpenOffice 3.4 shows just how successful the project has been: pulling in developers from over 21 corporate affiliations, while avoiding undue influence which is the death-knell of true open source communities; building a solid and stable codebase, with significant improvement and enhancements over other variants; and, of course, creating a healthy, vibrant and diverse user and developer community.”

http://www.openoffice.org/download/

Is JavaScript taking over from PHP ?

Aptana Jaxer & Mozilla now let you do loads of things "natively" that you used to have to do in PHP !

Read and post comments | Send to a friend

Apache HTTPD 2.2 I/O & forensic logging !

I've been readin the Apache Httpd Logs documentation for version 1.3, 2.0 and 2.2 :

and noticed that in Apache Httpd 2.2 there are a couple of new modules / features that could be very useful for any development servers you run !

mod_logio adds in two additional LogFormat fields (%I and %O) that log the actual number of bytes received and sent on the network.

mod_log_forensic provides for forensic logging of client requests. Logging is done before and after processing a request, so the forensic log contains two log lines for each request. The forensic logger is very strict with no customizations. It can be an invaluable debugging and security tool.

Read and post comments | Send to a friend

LDAP Directory Servers and LDAP Browsers

Apache Velocity Project

Apache Velocity Project About Velocity

Velocity is a Java-based template engine. It permits anyone to use a simple yet powerful template language to reference objects defined in Java code.

When Velocity is used for web development, Web designers can work in parallel with Java programmers to develop web sites according to the Model-View-Controller (MVC) model, meaning that web page designers can focus solely on creating a site that looks good, and programmers can focus solely on writing top-notch code. Velocity separates Java code from the web pages, making the web site more maintainable over its lifespan and providing a viable alternative to Java Server Pages (JSPs) or PHP.

See also

Read and post comments | Send to a friend

ApacheBench HTTP server benchmarking tool & other Apache tools

Did you know that if you are running Apache you already have a HTTP benchmarking tool called ApacheBench aka ab !

Theres a list of all the tools you get with Apache @ http://httpd.apache.org/docs/2.2/programs/ including logresolve which is a post-processing program to resolve IP-addresses in Apache's access logfiles !

Finally there a great list of Open Source performance testing tools @ http://www.opensourcetesting.org/performance.php

Read and post comments | Send to a friend

apache htaccess file for wordpress

apache htaccess file for wordpress from

http://perishablepress.com/press/2006/06/14/the-htaccess-rules-for-all-wordpress-permalinks/

wordpress in same dir

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

wordpress in sub dir

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /foo/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /foo/index.php [L]
</IfModule>
# END WordPress

Read and post comments | Send to a friend

Web Browser “standards mode” & “quirks mode” and doctypes in html & xhtml

W3C QA – Recommended list of DTDs you can use in your Web document

If you search for Web Browser "standards mode", "quirks mode" and doctype, html, xhtml, xml you'll find plenty of information about the "problem" that certain browsers have but little about the "solution" !

I'm still confused but thinking that a solution might just to use PHP instead of HTML and add the following  header to my web pages


<? // if (HTTP_USER_AGENT <> a-bad-browser) echo "<?doctype ...stuff...>" ?>

Before I actually code this in PHP do you think it would work ?

Or do you have a better solution ?

Read and post comments | Send to a friend