473,503 Members | 11,281 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 2257
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
5931
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...
1
4479
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......
0
1841
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 ...
0
1368
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...
0
1428
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....
2
1677
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...
1
2533
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
7333
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
3582
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 :...
0
7095
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...
0
7294
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,...
0
7361
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...
0
7470
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
3183
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...
0
3173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1523
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 ...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.