Apache Virtual Host in Windows - how do I deal with Symbolic links? - windows

I'm trying to run a virtual host on a WAPP stack. My virtual host has the FollowSymLinks option, but in Windows, all those symbolic links (I'm using shortcuts, and I think this may be the problem) have the .lnk extension. So if I'm trying to access settings.html, Apache can't find it because all i have sitting there is settings.html.lnk. Apologies if my question is unclear.

Apache doesn't understand shortcuts. You need to use a proper symlink. On windows this is accomplished using the command line tool mklink. See http://ipggi.wordpress.com/2009/09/07/windows-file-junctions-symbolic-links-and-hard-links/ for more details.

For security reasons, symlinks aren't followed by default on Apache.
Better than enable it in the config file with "Options FollowSymLinks" you should use
http://httpd.apache.org/docs/current/urlmapping.html#outside
That's not exactly the answer you expected but may help...

Related

Windows emacs configuration

I use emacs on a Windows computer (I can't chose another OS as it's my work computer).
I want a smooth scrolling but I can't find where to put the configuration file. I've read things like https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but that doesn't work. Does anyone know how to do it?
Thanks.
You said you followed the instructions # https://www.gnu.org/software/emacs/manual/html_node/emacs/Windows-HOME.html but it didn't work. Did you try updating the system registry as suggested by https://www.gnu.org/software/emacs/manual/html_node/emacs/MS_002dWindows-Registry.html#MS_002dWindows-Registry? That is what worked for me.
I added GNU/Emacs to HKEY_LOCAL_MACHINE/SOFTWARE and added a string HOME with the directory I wanted emacs to refer to as home (C:\Users\my_user_name).
That same link will also describe the search order emacs uses and the values of Environment Variables you can set.

Windows 7 - no network - What do I need to locally fake UNC path for development/testing?

Situation: I'm on a stand-alone development computer running Windows 7. Not connected to any Windows Server. Would like to test a Window application's ability to use UNC paths. Will be transferred later to a Linux server (not at my location), hence the desire to use a cross-platform path mechanism (UNC) (//servername/sharename), rather than a Window's mapped drive (X:\foldername).
The application is Autodesk Maya 2014. A project's main file contains many references to other files. These file references can be relative paths ("subfolder/filename.ext"), absolute paths ("H:/projects/this_project/subfolder/filename.ext"), or UNC paths ("//servername/projects/.." or "servername/assets/..").
The app permits forward slashes, and maps those to the correct character on different OSes. Wherever possible, I use relative paths.
But I have a situation where a plug-in is not correctly working with relative paths, so I have resorted to using some absolute paths. It has been requested that I change these from the current mapped drive form, to UNC paths. REASON: the data will be transferred to a render farm, running Linux. A Linux version of the app will be used. (So my question isn't about accessing Linux files from my Windows box; it is about setting up all the data so that when everything is moved to the render farm, it will still run.)
Due to the combination of plug-ins and features we are using in Maya, I am not 100% certain I can convert all paths to relative form. (Questions there for Maya forums.) So as a fallback, I need to test with UNC paths. Am asking what it would take to set this up on my Windows 7 PC, without actually connecting to a server computer. (Don't have Linux nor Windows Server set-up at my location.)
I don't normally do network-related programming, nor server programming, so the various possible solutions are not familiar to me.
Googling suggests some basic techniques, that may or may not be relevant. Before I spend more time on this, want to know if I am going in the correct/easiest direction.
installing a local DNS server and editing its hosts file. Such as:
http://sourceforge.net/projects/acrylic/
http://sourceforge.net/projects/dhcp-dns-server/
.. but I don't have a domain name, I just have a (future) network computer name, so this is not relevant?
Editing LMHOSTS file
.. but this is just for mapping between a name and an IP address?
multiple NetBIOS names (OptionalNames)
Mentioned here:
http://www.mediamonkey.com/forum/viewtopic.php?t=51722&f=1
Which refers to:
https://serverfault.com/questions/23823/how-to-configure-windows-machine-to-allow-file-sharing-with-dns-alias
.. But that is talking about DNS, so is that relevant?
What I have succeeded in doing so far:
In Command Prompt (Run as Administrator):
net view \\localhost
or
net view \\mycomputernamehere
Lists shared folders on my PC. E.g. H:\temp Properties / Sharing, shared as "HTemp", which is listed.
So I think all I need to do is:
A. Share any folder with the desired name, e.g. "projects".
It will then be visible as "\\localhost\projects".
B. Convince Windows to use my local computer when I ask for "\\servername". I can then use "//servername/projects" in the app, which will ask Windows for "\\servername\projects", which then would be converted by Windows to "\\mycomputernamehere\projects".
... this (B) is the part I need help with. (3) above sounds like it is a solution. But to me it is rather arcane (editing the registry). Will it accomplish what I need? Is there an easy solution that doesn't involve registry editing?
And yes, somewhere along the way it dawned on me that the simplest solution is to rename my computer to "servername". I'll probably do that for this week.
But I'd still like to learn a way to alias my computer name, to fake a UNC path without actually renaming my computer. And without relying on a second computer acting as server.
This is a late answer, but for future reference:
Your suggestion of multiple NetBIOS names (OptionalNames) has worked for me to allow a Windows machine to accept UNC paths under other computer names.
For completess, you can combine this with adding the same alias's to the hosts file with the localhost ip 127.0.0.1 so IP traffic will always be redirected.
Maybe use the UNC version of localhost?
\\localhost\c$\tmp
Will map to your local c:\tmp folder.

How do I set up and ftp server with a linux machine so that other people can use the files?

I'm trying to set up an ftp server for our lab at work. I have some files on my computer and I need the people in my office to be able to access them with a link. I know this is very broad, but how do I do this?
The most important part for me is knowing the ip address of the ftp server.
I have an ubuntu distribution
What particular distribution of Linux are you using to do this?
Ubuntu has some very good documentation on how to setup an FTP server, but the steps required will vary a bit between distros. If you update your question to include what distribution you're using, I can update my answer with some more specific / relevant information.
If your only problem is knowing the IP address of the server, then the command ifconfig will provide you with this information. Note that this command may need to be run as root or with sudo.

Best way to edit Linux server configuration files on Mac OS X?

I'm used to editing my remote Ubuntu server through SSH and Nano. I've tried using Vim and Emacs but since I don't manage the server frequently enough I never quite get the hang of it and end up forgetting the commands.
I use TextMate daily for programming and was wondering if there's any counter-recommendation against mounting the server's /etc/ folder locally using http://www.macfusionapp.org/ and creating a TextMate project containing /etc/ and editing all configuration files right within?
root would have to be used through SSH to allow editing of the /etc/ files so that makes me a little nervous. Is this a bad approach?
I sometimes use Cyberduck to remotely edit files. You can set up SFTP connections in Cyberduck, so you can connect to any remote machine to which you have SSH access. Cyberduck lets you use TextMate as an external editor, so you can set up the connection and start editing, and Cyberduck will automatically upload your changes.
(This is probably possible in other FTP clients like Transmission, too, but I personally use Cyberduck so I don't know much about other clients.)
There's nothing wrong with using MacFUSE, but I find the Cyberduck solution to be simpler.

Joomla FTP problem!

Good evening everyone, I been workin' on Ubuntu server, and I work from a remote pc that uses Windows XP Pro and ubuntu 9.10 too...ok the thing is...I installed joomla 1.5 last version on the ubuntu server from my pc and everything was good until I had to fill the ftp information, never found the connection path so I installed without it...now I have my joomla but I want to install some extensions and here's the problem, with the FTP Filezilla runin' on windows I connect perfectly with the server as with SSH in Ubuntu, but when I try to fill the FTP information on joomla, it doesnt recognizes the path, any idea about it?...
If it's 1.5, you really don't need the FTP in the Joomla configuration set.
Try this: disable FTP in Joomla. (Global Configuration / Server)
Then try to install a component / module / plugin / whatever.
It's a bit counterintuitive, but will most likely work - or at least it does in my experience. Joomla's file system can manage files for you... it's that whole content management system thing.
If you're dead set on enabling FTP, then check the Global Configuration, and see what the :Path to Temp-folder: is set to. In 1and1's case, it'll be something like:
/homepages/26/d264424517/htdocs/english/tmp
Strip the 'tmp' and you'll see where '/english' would be the root path for the FTP setting, but again you most likely don't need it.
Please read the FTP Layer hints on the Joomla! forum. The info here had helped me resolved similar problems in the past.

Resources