Solved

Your opinion needed: Include virtual with IDIOTIC absolute path

Posted on 2004-09-28
7
212 Views
Last Modified: 2013-11-18
I am having an argument with the help desk of my Web hosting server.

The guy insists that I have to use a path like this:

include virtual="/btslmtrad2.datasecure.net_non_ssl/niveau-b/includes/connect_db.asp"

The stupid part being "/btslmtrad2.datasecure.net_non_ssl/niveau-b"

I am in the process of switching servers for a supposedly newer (read "better") server. On my old server, they created pointers (or root directories) for my five web sites. The way I included files was like this:

include virtual="/includes/connect_db.asp"

The "includes" folder being located in the root directory of each web site

This worked perfectly and had the advantage of also working on my local version of IIS where I sometimes modify my files.

Now with the new server, I have to use a HUGE path that I must add onto every include command in my sites.

I have about 12 000 pages in five web sites. I don't see how this can be the way things are done correctly.

There must be a way for my new server to specify that my root folders are indeed my ROOT folders for the include virtuals of each Web site.

Am I COMPLETELY out to lunch?

0
Comment
Question by:vanauden
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
  • 2
7 Comments
 
LVL 33

Expert Comment

by:humeniuk
ID: 12172225
No, you're not out to lunch.  The "includes" directory should be in your site's root directory and you should be able to access it as you did previously.  Tell them to get their act together because you're not updating 12,000 pages.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12172550
I agree with humeniuk.

Do you have SSH access to your server?  If so, you can create symbolic links in each of the five directories.

Or, a better solution, is to ask them to add a simple line to your httpd.conf configuration for each of the virtual servers, that looks like:

Alias /includes /full/path/to/includes
0
 
LVL 1

Author Comment

by:vanauden
ID: 12172808
Hi periwinkle

Can provide a fake, but concrete example for your "alias" code? I don't know much about server configuration.

thanks!
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 15

Accepted Solution

by:
periwinkle earned 500 total points
ID: 12172922

Something like:

<VirtualHost xxx.xxx.xxx.xxx:80>
ServerName www.mydomain.com
ServerAlias mydomain.com
DocumentRoot /home/httpd/yourdomain
Alias /includes /home/httpd/yourotherdomain/includes

...

</virtualhost>

where xxx.xxx.xxx.xxx is your IP address.  Your configuration may vary, but the Alias line is what is important.  I don't know if you can stick it in an .htaccess file (I'd think that you can't), but it's something you could try.
0
 
LVL 1

Author Comment

by:vanauden
ID: 12172991
thank you periwinkle! and thank you humeniuk for the input as well!
0
 
LVL 33

Expert Comment

by:humeniuk
ID: 12173125
Good luck.  Sounds like you're on the right track.
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 12173132
Glad to have helped!
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
AWS Advice on using WHM/cPanel 1 90
Problem to file 3 92
setup wamp server for first time 2 102
Point a domain to a 4rd party web host without changing nameservers 2 48
Preface This article introduces an authentication and authorization system for a website.  It is understood by the author and the project contributors that there is no such thing as a "one size fits all" system.  That being said, there is a certa…
I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
The viewer will learn how to dynamically set the form action using jQuery.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question