473,750 Members | 2,435 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

symlink in URL

I'm developing a website (PHP/Apache), and I need to be able to use a
'symlink' inside a URL where the symlink is a folder not a file.

I have been able to use symlinks that point directly to a file. Now I need
to be able to have the symlink point to a folder (which is a parent to other
content).

I have used PHP code to generate a SYMLINK to a folder, and I have
successfully tested the symlink through PUTTY. What I can't seem to do is
to utilise the symlink through my browser.

When I use the symlink in the url, my server returns error 500 (internal
server error).

Can this be done?
Is there a special way of setting up the url to make it work?
Do I need to setup something in my .htaccess?
Do I need to setup something in my httpd.conf or php.ini?

Cheers,
Nap

I've never used newsgroups b4, so please pardon any mistakes I make. I
welcome any feedback though so I don't make them again.
Dec 2 '06 #1
1 2272
DJ wrote:
Do I need to setup something in my httpd.conf or php.ini?
In httpd.conf, add:

<Directory /path/to/webfolder>
Options FollowSymLinks
</Directory>
JW
Dec 2 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
5954
by: Patrick Lioi | last post by:
I've developed a simple content management system in PHP, and I'd like to be able to put the code for it in a single place, and have several sites on one server seamlessly share the code. I want to put the app itself in /DOCROOT/MyCMS/. I want to put a site that uses it in, say, /DOCROOT/site1, /DOCROOT/site2, etc. I want to place a symlink to /DOCROOT/MyCMS/ inside each site
1
4493
by: marco | last post by:
Hi all, I know about os.symlink(src, dst), but is there a way to overwrite an existing symlink e.g. "ln -sf"? Short of checking and, if necessary, having to delete the existing link by hand... Thanks! --
0
1861
by: A. Murat Eren | last post by:
Hi, I have a problem about zipfile. I'm trying to add files from local file system into a zip file via zipfile module of python.. I have a function in my class which recursively adds files or dirs into zip: -------8<-------------------8<--------------------8<------------------8<----- def add_file(self, fileName):
0
1391
by: MD Raziuddin Haqqani | last post by:
------=_NextPart_000_00FC_01C35142.4E7FDE00 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi, Is there any way to create a symlink of table in two different = databases which belongs to the same user. It will be great help if I get the solution for above mention task. =20
0
1446
by: lynn | last post by:
Hello, I tried to install on my mac osx 10.3.3 my mysql 4.0.13 databases on an other partition than its application; I know it is possible because I managed to do it previously with jaguar. So, as I did before, I copied complete var of mysql into the other partition. I eliminated the var in mysql directory and I made a "var" symlink between the mysql directory and the var new location ; after I verified the group, user name and...
2
1690
by: wheresjim | last post by:
I have a project in which I only need read access to a Microsoft Access database (.mdb file) via JDBC and unfortunately, the file is frequently locked by another application when I need access to it. I figured that I could bypass the lock file by creating a symlink (my os is Fedora Core 3 Linux) and just putting the url to the Symlink into the connection. Obviously I am having problems with this approach. Has anyone else done
1
2551
by: ravimane27 | last post by:
can someone tell me about symlink or softlink or symbolic link in windows? i want to access network drives using softlink, can i do this? how? thanks in advance.
2
7347
by: Nikolaus Rath | last post by:
Hello, symlink(...) symlink(src, dst) Create a symbolic link pointing to src named dst. Is there any reason why this is so deliberately confusing? Why is the
5
3598
by: saswat | last post by:
check if file is a symlink Here is a small piece of code: import os from stat import * filePath = "/home/xyz/symLinkTest" mode = os.stat(filePath) print 'Find using os.path : ',os.path.islink(filePath)
0
9000
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8838
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9577
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9396
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
6081
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4713
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4887
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3322
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2804
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.