Apache with coldfusion, using seo urls

2008-08-12 Thread Stephen Adams
Hi,

I'm trying to set up my laptop with Apache and CF, so far I have everything 
working the only problem is that the site I'm working on uses SEO url's e.g. 
mysite/myaccount and this will load the index.cfm page of the my account folder.
This also means that all the includes and links to stylesheets are like this:

CFINCLUDE TEMPLATE=/includes/modules/myaccount/act_default.cfm or link  
type=text/css href=/styles/print.css rel=stylesheet media=print / 

Now at work we are using IIS and these links work fine, but on my laptop I'm 
using Apache (I couldn't get IIS to work on the laptop), but on Apache url 
written this way are not working I have to amend them to 

CFINCLUDE TEMPLATE=../includes/modules/myaccount/act_default.cfm or link  
type=text/css href=../styles/print.css rel=stylesheet media=print / 

Is there a way in Apache I can get all url's to work the same as IIS?

Thanks 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310862
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Apache with coldfusion, using seo urls

2008-08-12 Thread Ryan Stille
Stephen Adams wrote:
 Hi,

 I'm trying to set up my laptop with Apache and CF, so far I have everything 
 working the only problem is that the site I'm working on uses SEO url's e.g. 
 mysite/myaccount and this will load the index.cfm page of the my account 
 folder.
 This also means that all the includes and links to stylesheets are like this:

 CFINCLUDE TEMPLATE=/includes/modules/myaccount/act_default.cfm or link  
 type=text/css href=/styles/print.css rel=stylesheet media=print / 

 Now at work we are using IIS and these links work fine, but on my laptop I'm 
 using Apache (I couldn't get IIS to work on the laptop), but on Apache url 
 written this way are not working I have to amend them to 

 CFINCLUDE TEMPLATE=../includes/modules/myaccount/act_default.cfm or link 
  type=text/css href=../styles/print.css rel=stylesheet media=print / 

 Is there a way in Apache I can get all url's to work the same as IIS?

   

This doesn't sound like an Apache issue at all, if you are having to 
change your cfinclude paths.  cfinclude works at the ColdFusion server 
level, not on the web server level.

It looks like you may be missing a ColdFusion mapping, and may need to 
adjust your web server's web root and/or add an alias/virtual dir.

-Ryan


~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310871
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4


Re: Apache with coldfusion, using seo urls

2008-08-12 Thread J.J. Merrick
Is the site in a local folder such as:


http://localhost/mysite/ ?


and on the production IIS server is it set to:

http://mysite ?

If that is the case then / on the IIS server and Localhost are going
to be different locations... hence the reason you need ../ on the
apache box.


I usually just create a virtual host called something like
localhost.mysite and add that to apache and you end up with

http://localhost.mysite/

which will be more like your production environment.



J.J.

On Tue, Aug 12, 2008 at 8:35 AM, Stephen Adams [EMAIL PROTECTED] wrote:
 Hi,

 I'm trying to set up my laptop with Apache and CF, so far I have everything 
 working the only problem is that the site I'm working on uses SEO url's e.g. 
 mysite/myaccount and this will load the index.cfm page of the my account 
 folder.
 This also means that all the includes and links to stylesheets are like this:

 CFINCLUDE TEMPLATE=/includes/modules/myaccount/act_default.cfm or link  
 type=text/css href=/styles/print.css rel=stylesheet media=print /

 Now at work we are using IIS and these links work fine, but on my laptop I'm 
 using Apache (I couldn't get IIS to work on the laptop), but on Apache url 
 written this way are not working I have to amend them to

 CFINCLUDE TEMPLATE=../includes/modules/myaccount/act_default.cfm or link 
  type=text/css href=../styles/print.css rel=stylesheet media=print /

 Is there a way in Apache I can get all url's to work the same as IIS?

 Thanks

 

~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310877
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4