Difference between revisions of "Cssproxy"

From Dreamwidth Notes
Jump to: navigation, search
(Enabling cssproxy:)
(As a subdomain: ljconfig = config)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 +
== Enabling cssproxy ==
  
== Enabling cssproxy: ==
+
=== As a subdomain ===
  
To enable the cssproxy as a subdomain:
+
To enable the cssproxy as a subdomain, first make sure your DNS settings are correct.  You will need a wildcard subdomain record. If you're not sure about what this is, check out the "DNS Management" section of [[Subdomain setup]].
  
# Make sure your DNS settings are correct. If you're not sure, check out the "DNS Management" section of [[Subdomain setup]].
+
Then, you will need to add the following to <code>etc/config.pl</code>:
# Edit the following in ljconfig.pl
+
** 'cssproxy' => 'cssproxy', in %SUBDOMAIN_FUNCTION
+
** $LJ::CSSPROXY = "http://cssproxy.$DOMAIN/";, and that LJ:: is probably redundant
+
  
You should also be able to enable cssproxy without using a subdomain, but no instructions for that yet.
+
<source lang="perl">$CSSPROXY = "http://cssproxy.$DOMAIN/";</source>
  
(thanks to <ljuser>exor674</ljuser> for walking me through this!)
+
You will also have to add a line to the <code>%SUBDOMAIN_FUNCTION</code> hash and create it if it does not already exist:
 +
 +
<source lang="perl">%SUBDOMAIN_FUNCTION = (
 +
    'cssproxy' => 'cssproxy',
 +
);</source>
 +
 
 +
Note that <source lang="perl">$USER_VHOSTS = 1;</source> must be enabled (if you followed the instructions in [[Subdomain setup]], you should already have finished this).
 +
 
 +
=== Without a subdomain ===
 +
 
 +
No instructions yet.
 +
 
 +
[[Category: Dreamwidth Installation]]

Latest revision as of 01:47, 17 May 2009

Enabling cssproxy

As a subdomain

To enable the cssproxy as a subdomain, first make sure your DNS settings are correct. You will need a wildcard subdomain record. If you're not sure about what this is, check out the "DNS Management" section of Subdomain setup.

Then, you will need to add the following to etc/config.pl:

$CSSPROXY = "http://cssproxy.$DOMAIN/";

You will also have to add a line to the %SUBDOMAIN_FUNCTION hash and create it if it does not already exist:

%SUBDOMAIN_FUNCTION = ( 
    'cssproxy' => 'cssproxy',
);
Note that
$USER_VHOSTS = 1;
must be enabled (if you followed the instructions in Subdomain setup, you should already have finished this).

Without a subdomain

No instructions yet.