08-20-2008
Almost 100% solved!
That's what I was looking for! Thank you very much!
I added the following to my httpd.conf file to test this out:
<VirtualHost *>
ServerAdmin webmaster@mysite.com
DocumentRoot /Applications/MAMP/public_html/someFolder
ServerName localhost
</VirtualHost>
When I visited http://localhost, the index.html file in public_html/someFolder showed up! Thanks again for your help!
However, then I added the following folder and file: public_html/anotherFolder/index.html. When I tried to visit localhost/anotherFolder/index.html, I got a 404 error. Can't other files be served out of the public_html root? I also placed some links in the index.html file residing in someFolder to files nested within someFolder, and those weren't found either...
Last edited by kumakuma; 08-20-2008 at 03:38 AM..
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
All,
I want to run a non-root script as the root user with non-root environment variables with crontab. The non-root user would have environment variables for database access such as Oracle or Sybase. The root user does not have the Oracle or Sybase enviroment variables. I thought you could do... (2 Replies)
Discussion started by: bubba112557
2 Replies
2. IP Networking
Setup a site to site VPN between two cisco routers.
One of the site locations is unable to access ports such as https://example.com:9001
How do I let them go into port 9001?
They can ssh, ftp, telnet and everything else.
Is this a VPN issue or ACL access issue?
I put
permit ip host... (0 Replies)
Discussion started by: photon
0 Replies
3. Solaris
Hi Gurus out there...
I am pondering over a situation where I have non-root access (user account), where I am trying to determine paths (including multipaths) on a host.
"luxadm display" seems very appropriate, but requires root access.
Is there anyway I can get the FC path information?
... (1 Reply)
Discussion started by: verisund
1 Replies
4. Solaris
Hi All
After downloading ZFS documentation from oracle site, I am able to successfully migrate UFS root FS without zones to ZFS root FS. But in case of UFS root file system with zones , I am successfully able to migrate global zone to zfs root file system but zone are still in UFS root file... (2 Replies)
Discussion started by: sb200
2 Replies
5. IP Networking
Hi,
I am trying to establish vpn between my linux server and cisco asa at client side.
I installed openswan on my cent os.
Linux Server
eth0 - 182.2.29.10
Gateway - 182.2.29.1
eth1 - 192.9.200.75
I have simple IPtables Like
WAN="eth0"
LAN="eth1" (0 Replies)
Discussion started by: ashokvpp
0 Replies
6. UNIX for Dummies Questions & Answers
When I do sudo -i isn't that like creating a root login shell session? Why isn't motd displayed? motd=message of the day.
---------- Post updated at 09:54 AM ---------- Previous update was at 09:25 AM ----------
I think I answered it myself, it is only called for remote login sessions, once... (2 Replies)
Discussion started by: glev2005
2 Replies
7. Shell Programming and Scripting
I need to list users in /etc/passwd with root's GID or UID or /root as home directory
If we have these entries in /etc/passwd
root:x:0:0:root:/root:/bin/bash
rootgooduser1:x:100:100::/home/gooduser1:/bin/bash
baduser1:x:0:300::/home/baduser1:/bin/bash... (6 Replies)
Discussion started by: anil510
6 Replies
8. IP Networking
Q: "Does Cisco 1921 router support,, act as an endpoint for, site to site VPNs using IPSec? If so, how many? "
A: If you get the Cisco 1921/k9 with the security services bundle then it will have built in security features. Cisco, typically includes IP Sec tunnels I believe as part of that... (0 Replies)
Discussion started by: Ayaerlee
0 Replies
9. IP Networking
Hi @all,
I try to connect 2 LANs with IPSec/Openswan
LAN 1: 192.168.0.0/24
LAN 2: 192.168.1.0/24
This is my Config:
conn HomeVPN # # Left security gateway, subnet behind it, nexthop toward right. left=192.168.1.29 ... (1 Reply)
Discussion started by: bahnhasser83
1 Replies
10. What is on Your Mind?
Hi all, (mainly Neo)...
I keep noticing that the SQRT code I wrote recently for a POSIX shell keeps appearing, (the green colour sticks out like a sore thumb).
So I decided to take a look on Google.
Guess what?
UNIX.COM comes first in Google's listing just from two words, see image... (2 Replies)
Discussion started by: wisecracker
2 Replies
LEARN ABOUT DEBIAN
tdiary-setup
TDIARY-SETUP(1) General Commands Manual TDIARY-SETUP(1)
NAME
tdiary-setup -- installer to set up tdiary files for a user
SYNOPSIS
tdiary-setup [default | symlink | copy | update ] directory
DESCRIPTION
This manual page documents briefly the tdiary-setup commands.
OPTIONS
These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is
included below. For a complete description, see the Info files.
default Copy CGI files and set up a tdiary user. Choose default if your httpd runs under suEXEC mode, which is generally recommended to
make security stronger.
symlink Make symbolic links and set up a tdiary user. Choose symlink if your httpd does not run under suEXEC mode.
copy Copy all the files and set up a tdiary user.
update Update existing tDiary setting. Use this when you update the tdiary package.
directory Directory where CGI files will be copied. If the directory does not exist it will be made.
USAGE
tdiary-setup default /home/foo/public_html/diary
AUTHOR
This manual page was written by Daigo Moriwaki beatles@sgtpepper.net for the Debian system (but may be used by others). Permission is
granted to copy, distribute and/or modify this document under the terms of the GPL Version 2.
TDIARY-SETUP(1)