LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-26-2011, 07:30 PM   #1
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Rep: Reputation: 30
Apache alias not working


Hello, this is a flippin' n00b question and I know it, but it's been driving me up a wall for a day now.

The problem is that I've got a CSS file that WORKS. I've tried it in the webroot directory. But I moved it to /var/www/styles and now it's like the server cannot find it AT ALL. Maddening. Any helpful, or even just sincere, suggestions would be appreciated.

I've got the following in my httpd.conf file
Code:
<IfModule alias_module>
    #
    # Redirect: Allows you to tell clients about documents that used to 
    # exist in your server's namespace, but do not anymore. The client 
    # will make a new request for the document at its new location.
    # Example:
    # Redirect permanent /foo http://www.example.com/bar

    #
    # Alias: Maps web paths into filesystem paths and is used to
    # access content that does not live under the DocumentRoot.
    # Example:
    # Alias /webpath /full/filesystem/path
    #
    # If you include a trailing / on /webpath then the server will
    # require it to be present in the URL.  You will also likely
    # need to provide a <Directory> section to allow access to
    # the filesystem path.
    Alias /images /var/www/graphics
    Alias /css /var/www/styles
    Alias /test /home/vaughtg/Dropbox/MyWebsite/LocalSite
    Alias /help /home/vaughtg/Dropbox/PHP_Docs

    #
    # ScriptAlias: This controls which directories contain server scripts. 
    # ScriptAliases are essentially the same as Aliases, except that
    # documents in the target directory are treated as applications and
    # run by the server when requested rather than as documents sent to the
    # client.  The same rules about trailing "/" apply to ScriptAlias
    # directives as to Alias.
    #
    ScriptAlias /cgi-bin "/usr/local/apache2/cgi-bin/"
    ScriptAlias /classes /var/www/phpclasses
    ScriptAlias /ssi /var/www/includes

</IfModule>
And the following code in my web page
Code:
    <LINK HREF="/css/mine.css" REL="STYLESHEET" TYPE="text/css" />
 
Old 01-26-2011, 09:18 PM   #2
gvaught
Member
 
Registered: Sep 2003
Location: MidWest
Distribution: Debian GNU/Linux 8 (jessie)
Posts: 199

Original Poster
Rep: Reputation: 30
And, for the record, I've checked to verify that there's not "some other" httpd.conf on the box that's being run instead of this one.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
apache alias help knockout_artist Linux - Server 4 04-26-2007 10:42 PM
create alias on apache 1.3 ALInux Linux - Networking 2 04-01-2006 04:20 AM
Apache Alias questions xemous Linux - Networking 1 08-21-2005 09:04 AM
Apache: Alias is working on ssl vhost but not on mass vhost jonavogt Linux - Software 0 06-07-2005 03:05 PM
Apache Alias isn't working soren625 Linux - Software 3 03-07-2005 05:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:47 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration