Web Hosting Forum | Lunarpages
News: July 14, 2008 - New Contest! - Submit Your WordPress Theme Designs, Win BIG!
August 25, 2008 - Time to Vote for the August 2008 Site of the Month!
 
*
Welcome, Guest. Please login or register.
Did you miss your activation email?
August 30, 2008, 06:21:29 AM


Login with username, password and session length


Pages: [1]   Go Down
  Print  
Author Topic: SSI on Subdomains  (Read 586 times)
The Natural Greek Phenomenon
Intergalactic Superstar
*****
Offline Offline

Posts: 144


WWW
« on: April 22, 2006, 07:26:46 PM »

Greetings,

I am trying to use SSI  on subdomains but keep getting this message: [an error occurred while processing this directive]

Basically, I try to call a file from a subdomain to root using this syntax:
Code:
<!--#include virtual="../file.php" -->

It doesn't work...

Sorry that I used the dedicated forum but since I am a dedicated client, I seized the privilege.
Thanks,
George
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1014



« Reply #1 on: April 22, 2006, 11:52:06 PM »

Hi George,

Could you please specify the type of control panel on your server?

Please note, for prompt support, you can contact dedicated support department directly by emailing us at dedicated@lunarpages.com or even opt for a faster and live, but unofficial, dedicated chat support at http://dedicated@lunarpages.com

Logged

Kind Regards,
Vlad Artamonov
The Natural Greek Phenomenon
Intergalactic Superstar
*****
Offline Offline

Posts: 144


WWW
« Reply #2 on: April 23, 2006, 10:43:28 AM »

Hello Perestrelka,

I have WHM and cPanel.

No rush actually as it's for an upcoming project.

I can't get it to work and also tried:
<!--#include virtual="/home/myname/public_html/file.etc" -->
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1014



« Reply #3 on: April 25, 2006, 06:28:33 AM »

Hi,

I just tested and ssi works for me on a subdomain without any configuration adjustments. Please bear in mind the "virtual" argument is used to begin the search for files from the root folder of your webserver.  So if you uploaded a file into /home/username/public_html/subdomain/file.txt, the correct ssi command will be:

<!--#include virtual="/file.txt" -->

I hope this is helpful.
Logged

Kind Regards,
Vlad Artamonov
The Natural Greek Phenomenon
Intergalactic Superstar
*****
Offline Offline

Posts: 144


WWW
« Reply #4 on: April 25, 2006, 10:16:22 AM »

Hi Perestrelka,

What I am trying to accomplish is to include a file placed in a root folder to a subdomain.

So I want a file placed in  /home/username/public_html/folder/file.txt to be included in:
 /home/username/public_html/subdomain/index.shtml using SSI

I tried numerous ways and didn't work.
Logged
perestrelka
Administrator
Master Jedi
*****
Offline Offline

Posts: 1014



« Reply #5 on: April 30, 2006, 12:14:43 AM »

Unfortunately, you can't do what you want. The "virtual" attribute should specify a URL relative to the document being served. It can start with a /, but must be on the same server as the file being served. You would use the "virtual" argument if the file you are calling for is located in a position requiring an address starting at the server root. It is not possible to include a file which is not located within the subdomain's root folder.
Logged

Kind Regards,
Vlad Artamonov
The Natural Greek Phenomenon
Intergalactic Superstar
*****
Offline Offline

Posts: 144


WWW
« Reply #6 on: April 30, 2006, 09:10:21 AM »

OK Vlad, thanks for the info.
Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.3 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM