Difference between revisions of "NATS4 Apache Configuration"

From TMM Wiki
Jump to navigationJump to search
m
 
Line 3: Line 3:
 
}}
 
}}
  
== Executing PHP Pages ==
+
== Join Link Issues ==
 +
The following information can be used for your Apache Configuration files if you are having problems with your [[NATS]] join links.
 +
 
 +
=== Executing PHP Pages ===
 
Find the following line in your Apache httpd.conf:
 
Find the following line in your Apache httpd.conf:
  
Line 16: Line 19:
 
</pre>
 
</pre>
  
== FollowSymLinks ==
+
=== FollowSymLinks ===
 
If your linkcodes go to your NATS install instead of your [[ct#Site|site]], ensure you have the following two lines in your Apache configuration:
 
If your linkcodes go to your NATS install instead of your [[ct#Site|site]], ensure you have the following two lines in your Apache configuration:
  
Line 42: Line 45:
 
</pre>
 
</pre>
  
== Zend Optimizer ==
+
== Tracking Link Issues ==
 +
The following information can be used for your ''.htaccess'' file if you are having issues with your [[NATS]] tracking links.
 +
 
 +
=== Zend Optimizer ===
 
To use Apache 2.0 with Zend Optimizer and NATS, change all of the lines
 
To use Apache 2.0 with Zend Optimizer and NATS, change all of the lines
 
starting with SetHandler in your ''nats/www/.htaccess''. Replace the
 
starting with SetHandler in your ''nats/www/.htaccess''. Replace the
Line 64: Line 70:
 
httpd.conf.
 
httpd.conf.
  
== Apache 2 ==
+
=== Apache 2 ===
 
Most of our .htaccess files have the following lines:
 
Most of our .htaccess files have the following lines:
  

Revision as of 13:13, 24 September 2010

NATS 4
NATS Setup
Post-Installation Steps
Apache Configuration
MySQL Settings
Creating Admin Accounts
Multiple Server Setup
Using Memcached for Caching
File Upload Setup
Link Domain
HTTPS Setup
NATS4 Files and Directories
NATS4 Go Live Checklist
NATS3 to NATS4 Going Live Checklist
Moving NATS4
Members Admin
The Members Admin
View Member Details
Add Member
MySQL Auth
Mod Authn DB
Multisite Access
Member Logging
Member Password Retrieval
OpenID Connect
Mod Auth OpenIDC
ID Numbers

Join Link Issues

The following information can be used for your Apache Configuration files if you are having problems with your NATS join links.

Executing PHP Pages

Find the following line in your Apache httpd.conf:

AddType application/x-httpd-php

Add the following extensions to the end of the line above:

.php .php3 .html .htm

FollowSymLinks

If your linkcodes go to your NATS install instead of your site, ensure you have the following two lines in your Apache configuration:

<Directory /home/www>
	Options FollowSymLinks
	AllowOverride All
</Directory>

The lines should be in a global virtual host configuration. For example:

<VirtualHost *:80>
        ServerAdmin webmaster@site.com
        DocumentRoot /home/www
        ServerName site.com
        ServerAlias *.site.com
        CustomLog /dev/null common
        <Directory /home/www>
                Options FollowSymLinks
                AllowOverride All
        </Directory>
</VirtualHost>

Tracking Link Issues

The following information can be used for your .htaccess file if you are having issues with your NATS tracking links.

Zend Optimizer

To use Apache 2.0 with Zend Optimizer and NATS, change all of the lines starting with SetHandler in your nats/www/.htaccess. Replace the SetHandler with ForceType. For example:

Old

<Files ttrack>
SetHandler application/x-httpd-php
</Files>

New

<Files ttrack>
ForceType application/x-httpd-php
</Files>

Also add "AcceptPathInfo On" to the virtual host configuration in Apache's httpd.conf.

Apache 2

Most of our .htaccess files have the following lines:

<Files track>
SetHandler application/x-httpd-php
</Files>

Apache 2 requires you change the lines above to the lines below:

<Files track>
SetOutputFilter PHP
SetInputFilter PHP
</Files>

See Also