[SOLVED] Alias in Apache

Hi,
I am attempting to set up a webserver that will host multiple sites on the same computer. This is just a dev workstation, so it will not have a domain name pointing to it, I just want to be able to keep projects in different locations.
That being said, I am investigating the use of an alias (instead of virtual hosts). I sucessfully set up an alias to point /projectname to /home/<username>/project/location. When I visit the project name in a browser I am getting a 403 Access Forbidden. How can I set up permissions on this folder so that I can edit files without having to sudo every time but so that the web server can access them as well?
Thank you!
Last edited by Abadon125 (2012-02-08 16:10:51)

Yeah, agreed!
A better way to do this is described in the Wiki link I posted.  That is, first add the 'http' user to the 'users' group, then give execute and read privileges to the 'users' group (that should be sufficient for most of your project dir).  You're better off not giving write and execute to everyone else, for obvious reasons. You will also need to give group level read and execute privileges to your user's home directory ~/ and the directories leading to your source.  Otherwise Apache cannot transgress the path to the source directory. Something like this should do the trick (with root privs):
usermod -aG users http
chmod 755 /home/username
chmod -R 754 /home/username/projects
Personally, I have my development source in various directories under ~/Public_html and ownership/group set to harlequin:harlequin.  That way, by adding Apache to my own user group I don't in inadvertently grant access to other users' folders as well. That's just my preference, though.
If that fails, make sure you have defined the appropriate default index files for the directory if httpd.conf doesn't have global defaults set:
Alias /projectname /path/to/project/src
<Directory /path/to/project/src/>
DirectoryIndex index.html index.cgi index.pl index.php index.xhtml
Order allow,deny
Allow from all
</Directory>
Also: I forgot the final '/' in the Directory tag on my previous post. Sorry.
Last edited by C. M. Harlequin (2012-02-07 19:16:43)

Similar Messages

  • [SOLVED] alias with sudo: Password request malfunction

    Okay so here are two cool little system-maintenance related aliases, as suggested by "pacman tips" Wiki:
    Show dirs not owned by any package:
    alias pacman-disowned-dirs="comm -23 <(sudo find / \( -path '/dev' -o -path '/sys' -o -path '/run' -o -path '/tmp' -o -path '/mnt' -o -path '/srv' -o -path '/proc' -o -path '/boot' -o -path '/home' -o -path '/root' -o -path '/media' -o -path '/var/lib/pacman' -o -path '/var/cache/pacman' \) -prune -o -type d -print | sed 's/\([^/]\)$/\1\//' | sort -u) <(pacman -Qlq | sort -u)"
    Show files not owned by any package:
    alias pacman-disowned-files="comm -23 <(sudo find / \( -path '/dev' -o -path '/sys' -o -path '/run' -o -path '/tmp' -o -path '/mnt' -o -path '/srv' -o -path '/proc' -o -path '/boot' -o -path '/home' -o -path '/root' -o -path '/media' -o -path '/var/lib/pacman' -o -path '/var/cache/pacman' \) -prune -o -type f -print | sort -u) <(pacman -Qlq | sort -u)"
    typically I edit those into my "/etc/bash.bashrc" instead of "~/.bashrc", but there's no difference there. The thing is, when I invoke this alias,
    as regular user, it promptly requests [sudo] password, as it should, but after a brief moment the console returns to normal, there's no time for to even input the password, like this:
    [danilo@dandelion ~]$ pacman-disowned-dirs
    [sudo] password for danilo:
    [danilo@dandelion ~]$
    PS: If my password is still cached, it will work normally (my timeout is set to 30 min).
    here's my "/etc/bash.bashrc" at any rate:
    # /etc/bash.bashrc
    ## If not running interactively, don't do anything ##
    # [[ $- != *i* ]] && return
    ## Prompt display configurations ##
    set_prompt () {
    local last_command=$? # Must come first!
    PS1='\[\e[1;33m\]'
    if [[ $last_command != 0 ]]; then
    PS1+='$?'
    fi
    if [[ $EUID == 0 ]]; then
    PS1+='\[\e[1;31m\][\u@\h \W]\$\[\e[0m\] '
    else
    PS1+='\[\e[1;34m\][\u@\h \W]\$\[\e[0m\] '
    fi
    PROMPT_COMMAND='set_prompt'
    PS2='> '
    PS3='> '
    PS4='+ '
    ## Original default configs ##
    case ${TERM} in
    xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
    screen)
    PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033_%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
    esac
    ## File sourcing ##
    [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion
    ## Functions ## {{{
    ## Aliases ## {{{
    # Privileged access #
    if [ $UID -ne 0 ]; then
    alias sudo='sudo '
    alias scat='sudo cat'
    alias svim='sudoedit'
    alias root='sudo -i'
    alias reboot='sudo systemctl reboot'
    alias poweroff='sudo systemctl poweroff'
    alias update='sudo pacman -Su'
    alias netctl='sudo netctl'
    fi
    # listing #
    alias ls='ls -hF --color=auto'
    alias lr='ls -R' # recursive ls
    alias ll='ls -l'
    alias lall='ls -la'
    alias la='ll -A'
    alias lx='ll -BX' # sort by extension
    alias lz='ll -rS' # sort by size
    alias lt='ll -rt' # sort by date
    alias lm='la | more'
    # Show dirs that do not belong to any package #
    alias pacman-disowned-dirs="comm -23 <(sudo find / \( -path '/dev' -o -path '/sys' -o -path '/run' -o -path '/tmp' -o -path '/mnt' -o -path '/srv' -o -path '/proc' -o -path '/boot' -o -path '/home' -o -path '/root' -o -path '/media' -o -path '/var/lib/pacman' -o -path '/var/cache/pacman' \) -prune -o -type d -print | sed 's/\([^/]\)$/\1\//' | sort -u) <(pacman -Qlq | sort -u)"
    # Show files that do not belong to any package #
    alias pacman-disowned-files="comm -23 <(sudo find / \( -path '/dev' -o -path '/sys' -o -path '/run' -o -path '/tmp' -o -path '/mnt' -o -path '/srv' -o -path '/proc' -o -path '/boot' -o -path '/home' -o -path '/root' -o -path '/media' -o -path '/var/lib/pacman' -o -path '/var/cache/pacman' \) -prune -o -type f -print | sort -u) && <(pacman -Qlq | sort -u)"
    Last edited by DVNO (2014-08-12 05:12:57)

    You'd suppose it would work, but no, same error... Perhaps it traces back to some other configuration file...
    By the way, the second command, I didn't paste it correctly; There's no "&&" before the pacman query part of the command. Fixing the post now...
    Well, anyways, I believe I got'em working, I appended a useless command that requires elevation AND works properly, like this:
    alias pacman-disowned-dirs="sudo true && comm -23 <(sudo find / \( -path '/dev' -o -path '/sys' -o -path '/run' -o -path '/tmp' -o -path '/mnt' -o -path '/srv' -o -path '/proc' -o -path '/boot' -o -path '/home' -o -path '/root' -o -path '/media' -o -path '/var/lib/pacman' -o -path '/var/cache/pacman' \) -prune -o -type d -print | sed 's/\([^/]\)$/\1\//' | sort -u) <(pacman -Qlq | sort -u)"
    And:
    alias pacman-disowned-files="sudo true && comm -23 <(sudo find / \( -path '/dev' -o -path '/sys' -o -path '/run' -o -path '/tmp' -o -path '/mnt' -o -path '/srv' -o -path '/proc' -o -path '/boot' -o -path '/home' -o -path '/root' -o -path '/media' -o -path '/var/lib/pacman' -o -path '/var/cache/pacman' \) -prune -o -type f -print | sort -u) <(pacman -Qlq | sort -u)"
    ...Still, it's a r@t workaround, not a proper solution, so I'll ask to not mark this as solved yet. Maybe someone can backtrack this properly.
    Thank you, for the quick reply, much appreciated.

  • [SOLVED] alias or bash question

    Hello all,
    I just need a liittle help on alias or bash
    Right now, I want to run vim on xterm. So I always invoke
    xterm vim
    Everything works fine but when I manually add a directory or a directory of a file, something like
    xterm vim /directory/of/file_here
    It won't work.
    This is like manually opening a file in gvim or any app.
    I just want vim to run on xterm.  This is like clicking a file and open with gvim ('xterm vim' in this case).
    I'm currently using KDEmod4.2
    Last edited by ragingmon (2009-02-22 11:08:21)

    yay!! thanks a lot droog!!!
    that was really fast.
    marked as solved..

  • Using a folder alias with Apache

    I'm trying to make some files on my external firewire drive available on the web using Apple's built-in Apache server. In my 'Sites' folder I have an alias to a folder on my external drive. When I type my computers ip address into Safari I can get an directory listing of /Sites/~Username/. And I can see my aliased folder, but when I click on it I get a blank white screen. The icon next to the aliased folder in Safari is a question mark.
    How do I fix this?

    Two thoughts...
    Aliases don't work for somethings, a Symlink is needed.
    Use BatchMod to correct Permission on that Folder's entire contents...
    http://www.macupdate.com/info.php/id/6440

  • [SOLVED] bftpd for apache file server configuration

    i chose bftpd,
    is this a decent choice for a simple apache testing server?  i finally got it working last night after some configuration changes
    #ROOTDIR specifies the root directory of the client. It defaults to %h
    #(user's home directory). %u is replaced by the user name.
    ROOTDIR="/srv/http"
    #i set it to the doc root of the server
    #If DO_CHROOT is enabled, a user can not access directories other than his
    #HOMEDIR and its subdirectories. DON'T disable this globally if you don't
    #want to have a security hole!
    DO_CHROOT="yes"
    #even though i left this default, it still works, not out of my home directory, so this part is a bit confusing
    #With the option ALLOWCOMMAND_XXXX, you can disable the command XXXX.
    ALLOWCOMMAND_DELE="yes"
    #this one allowed me to overwrite files in /srv/http, without it ftp wouldnt work unless file didnt exist
    these are the only configuration changes i had to do.  im still wondering if i need to change one of the above and then add or tinker with one of the user functions below
    user ftp {
      #Any password fits.
      ANONYMOUS_USER="yes"
      DENY_LOGIN="Anonymous login disabled."
      # bftpd interprets ROOTDIR="%h" (the default), as ROOTDIR="/" for the anonymous user, override it
      ROOTDIR="/srv/ftp"
    user root {
      DENY_LOGIN="Root login not allowed."
    Last edited by wolfdogg (2011-06-13 23:04:37)

    gave up on bftpd and switched out to proftp

  • [SOLVED] Subversion + WebSVN (+ Apache): Forbidden Access

    I'm having terrible trouble trying to set up subversion + websvn on my server. I've set this up a few times on previous installs but this time I've run into a few new problems.
    My first issue: After following/using the subversion wiki, I pacman'd websvn and changed the permissions on the directory. Navigating to http://192.168.0.101/websvn, I get a Access forbidden! Error 403. In the past, I don't remember doing anything special when setting this up. This maybe my lack of understanding of Apache, but why is this happening (or rather, how can I fix this)? I have a few other directories set up in /srv/http that have the same permissions and don't get the 403 error.
    My second issue: I can't do checkouts because of SSL connection error. It turns out for my particular set-up, I need SSL (even if it's not trusted). I have no idea what to ask to get this to work. Maybe, what do I need to do so that my svn/websvn is able to use SSL?
    My third issue: When I do a checkout, my error is:
    Could not open the requested SVN filesystem
    could this be a permission error? Otherwise, I'm not sure why this install is different from my previous. I've re-done the subversion wiki 3 times now, and I've encountered the same troubles each time.
    Does anyone know or could help me understand what I'm doing wrong?
    Thanks.
    Last edited by Davini (2011-08-06 01:10:52)

    I'm bad..  my .htacces file had
    deny from all
    And SVN wasn't working because I didn't load the SSL module.

  • [Solved] ge70 2pe apache pro touchpad problem

    hey, my msi ge70 2pe apache pro when connect with a mouse, its touchpad cannot function.. what's the problem??

    Like IronHide said, it's a default setting which disable the thouch-pad while a external mouse is plugged in.
    But you can change this setting in the mouse properties.
    Right click on the touch-pad icon in the notification area> Properties of Touch-Pad>ELAN page>Un-click the "Disable when external USB pointing device plug in>Apply

  • Apache webserver start error

    Hi All,
    We have installed content server ver 630 on IBM-AIX ver 5.3 machines along with Apache web server ver Apache_1.3.41.
    while starting the server following is the error,
    $ apachectl start
    Syntax error on line 205 of /apache/kprcs/conf/httpd.conf:
    Cannot load /apache/kprcs/libexec/mod_sapcs.o into server:      0509-022 Cannot load module /apache/kprcs/libexec/mod_sapcs.o.
            0509-026 System error: A file or directory in the path name does not exist.
    /apache/kprcs/bin/apachectl start: httpd could not be started
    $
    Please find the httpd.conf file:
    ======================================================
    httpd.conf -- Apache HTTP server configuration file
    Timeout: The number of seconds before receives and sends time out.
    Timeout 300
    KeepAlive On
    MaxKeepAliveRequests: The maximum number of requests to allow
    during a persistent connection. Set to 0 to allow an unlimited amount.
    We recommend you leave this number high, for maximum performance.
    MaxKeepAliveRequests 100
    KeepAliveTimeout: Number of seconds to wait for the next request from the
    same client on the same connection.
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 10
    Number of servers to start initially --- should be a reasonable ballpark
    figure.
    StartServers 5
    MaxClients 150
    MaxRequestsPerChild 0
    LoadModule foo_module libexec/mod_foo.so
    LoadModule sapcs_module libexec/mod_sapcs.o
    LoadModule vhost_alias_module libexec/mod_vhost_alias.so
    LoadModule env_module         libexec/mod_env.so
    LoadModule config_log_module  libexec/mod_log_config.so
    LoadModule mime_magic_module  libexec/mod_mime_magic.so
    LoadModule mime_module        libexec/mod_mime.so
    LoadModule negotiation_module libexec/mod_negotiation.so
    LoadModule status_module      libexec/mod_status.so
    LoadModule info_module        libexec/mod_info.so
    LoadModule includes_module    libexec/mod_include.so
    LoadModule autoindex_module   libexec/mod_autoindex.so
    LoadModule dir_module         libexec/mod_dir.so
    LoadModule cgi_module         libexec/mod_cgi.so
    LoadModule asis_module        libexec/mod_asis.so
    LoadModule imap_module        libexec/mod_imap.so
    LoadModule action_module      libexec/mod_actions.so
    LoadModule speling_module     libexec/mod_speling.so
    LoadModule userdir_module     libexec/mod_userdir.so
    LoadModule alias_module       libexec/mod_alias.so
    LoadModule rewrite_module     libexec/mod_rewrite.so
    LoadModule access_module      libexec/mod_access.so
    LoadModule auth_module        libexec/mod_auth.so
    LoadModule anon_auth_module   libexec/mod_auth_anon.so
    LoadModule dbm_auth_module    libexec/mod_auth_dbm.so
    LoadModule digest_module      libexec/mod_digest.so
    LoadModule proxy_module       libexec/libproxy.so
    LoadModule cern_meta_module   libexec/mod_cern_meta.so
    LoadModule expires_module     libexec/mod_expires.so
    LoadModule headers_module     libexec/mod_headers.so
    LoadModule usertrack_module   libexec/mod_usertrack.so
    LoadModule log_forensic_module libexec/mod_log_forensic.so
    LoadModule unique_id_module   libexec/mod_unique_id.so
    LoadModule setenvif_module    libexec/mod_setenvif.so
    Reconstruction of the complete module list from all available modules
    (static and shared ones) to achieve correct module execution order.
    [WHENEVER YOU CHANGE THE LOADMODULE SECTION ABOVE UPDATE THIS, TOO]
    ClearModuleList
    AddModule mod_sapcs.cpp
    AddModule mod_vhost_alias.c
    AddModule mod_env.c
    AddModule mod_log_config.c
    AddModule mod_mime_magic.c
    AddModule mod_mime.c
    AddModule mod_negotiation.c
    AddModule mod_status.c
    AddModule mod_info.c
    AddModule mod_include.c
    AddModule mod_autoindex.c
    AddModule mod_dir.c
    AddModule mod_cgi.c
    AddModule mod_asis.c
    AddModule mod_imap.c
    AddModule mod_actions.c
    AddModule mod_speling.c
    AddModule mod_userdir.c
    AddModule mod_alias.c
    AddModule mod_rewrite.c
    AddModule mod_access.c
    AddModule mod_auth.c
    AddModule mod_auth_anon.c
    AddModule mod_auth_dbm.c
    AddModule mod_digest.c
    AddModule mod_proxy.c
    AddModule mod_cern_meta.c
    AddModule mod_expires.c
    AddModule mod_headers.c
    AddModule mod_usertrack.c
    AddModule mod_log_forensic.c
    AddModule mod_unique_id.c
    AddModule mod_so.c
    AddModule mod_setenvif.c
    Port 1090
    User nobody
    Group nobody
    ServerAdmin kprcs@KPRO
    DocumentRoot "/apache/kprcs/htdocs"
    <Directory />
        Options FollowSymLinks
        AllowOverride None
    </Directory>
    <Directory "/apache/kprcs/htdocs">
        Options Indexes FollowSymLinks MultiViews
        AllowOverride None
        Order allow,deny
        Allow from all
    </Directory>
    <IfModule mod_userdir.c>
        UserDir public_html
    </IfModule>
    <IfModule mod_dir.c>
        DirectoryIndex index.html
    </IfModule>
    AccessFileName: The name of the file to look for in each directory
    for access control information.
    AccessFileName .htaccess
    <Files ~ "^\.ht">
        Order allow,deny
        Deny from all
        Satisfy All
    </Files>
    UseCanonicalName On
    <IfModule mod_mime.c>
        TypesConfig /apache/kprcs/conf/mime.types
    </IfModule>
    DefaultType text/plain
    <IfModule mod_mime_magic.c>
        MIMEMagicFile /apache/kprcs/conf/magic
    </IfModule>
    HostnameLookups Off
    ErrorLog /apache/kprcs/logs/error_log
    LogLevel warn
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%i -> %U" referer
    LogFormat "%{User-agent}i" agent
    CustomLog /apache/kprcs/logs/access_log common
    ServerSignature On
    <IfModule mod_alias.c>
        Alias /icons/ "/apache/kprcs/icons/"
        <Directory "/apache/kprcs/icons">
            Options Indexes MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>
    This Alias will project the on-line documentation tree under /manual/
        Alias /manual/ "/apache/kprcs/htdocs/manual/"
        <Directory "/apache/kprcs/htdocs/manual">
            Options Indexes FollowSymlinks MultiViews
            AllowOverride None
            Order allow,deny
            Allow from all
        </Directory>
        ScriptAlias /cgi-bin/ "/apache/kprcs/cgi-bin/"
        <Directory "/apache/kprcs/cgi-bin">
            AllowOverride None
            Options None
            Order allow,deny
            Allow from all
        </Directory>
    </IfModule>
    <IfModule mod_autoindex.c>
    FancyIndexing is whether you want fancy directory indexing or standard
        IndexOptions FancyIndexing
    AddIcon* directives tell the server which icon to show for different
    files or filename extensions.  These are only displayed for
    FancyIndexed directories.
        AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
        AddIconByType (TXT,/icons/text.gif) text/*
        AddIconByType (IMG,/icons/image2.gif) image/*
        AddIconByType (SND,/icons/sound2.gif) audio/*
        AddIconByType (VID,/icons/movie.gif) video/*
        AddIcon /icons/binary.gif .bin .exe
        AddIcon /icons/binhex.gif .hqx
        AddIcon /icons/tar.gif .tar
        AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
        AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
        AddIcon /icons/a.gif .ps .ai .eps
        AddIcon /icons/layout.gif .html .shtml .htm .pdf
        AddIcon /icons/text.gif .txt
        AddIcon /icons/c.gif .c
        AddIcon /icons/p.gif .pl .py
        AddIcon /icons/f.gif .for
        AddIcon /icons/dvi.gif .dvi
        AddIcon /icons/uuencoded.gif .uu
        AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
        AddIcon /icons/tex.gif .tex
        AddIcon /icons/bomb.gif core
        AddIcon /icons/back.gif ..
        AddIcon /icons/hand.right.gif README
        AddIcon /icons/folder.gif ^DIRECTORY^
        AddIcon /icons/blank.gif ^^BLANKICON^^
    DefaultIcon is which icon to show for files which do not have an icon
    explicitly set.
        DefaultIcon /icons/unknown.gif
    AddDescription allows you to place a short description after a file in
    server-generated indexes.  These are only displayed for FancyIndexed
    directories.
    Format: AddDescription "description" filename
        #AddDescription "GZIP compressed document" .gz
        #AddDescription "tar archive" .tar
        #AddDescription "GZIP compressed tar archive" .tgz
    ReadmeName is the name of the README file the server will look for by
    default, and append to directory listings.
    HeaderName is the name of a file which should be prepended to
    directory indexes.
        ReadmeName README.html
        HeaderName HEADER.html
    IndexIgnore is a set of filenames which directory indexing should ignore
    and not include in the listing.  Shell-style wildcarding is permitted.
        IndexIgnore .??* *~ # HEADER README* RCS CVS *,v *,t
    </IfModule>
    End of indexing directives.
    Document types.
    <IfModule mod_mime.c>
        AddLanguage da .dk
        AddLanguage nl .nl
        AddLanguage en .en
        AddLanguage et .ee
        AddLanguage fr .fr
        AddLanguage de .de
        AddLanguage el .el
        AddLanguage he .he
        AddCharset ISO-8859-8 .iso8859-8
        AddLanguage it .it
        AddLanguage ja .ja
        AddCharset ISO-2022-JP .jis
        AddLanguage kr .kr
        AddCharset ISO-2022-KR .iso-kr
        AddLanguage nn .nn
        AddLanguage no .no
        AddLanguage pl .po
        AddCharset ISO-8859-2 .iso-pl
        AddLanguage pt .pt
        AddLanguage pt-br .pt-br
        AddLanguage ltz .lu
        AddLanguage ca .ca
        AddLanguage es .es
        AddLanguage sv .sv
        AddLanguage cs .cz .cs
        AddLanguage ru .ru
        AddLanguage zh-TW .zh-tw
        AddCharset Big5         .Big5    .big5
        AddCharset WINDOWS-1251 .cp-1251
        AddCharset CP866        .cp866
        AddCharset ISO-8859-5   .iso-ru
        AddCharset KOI8-R       .koi8-r
        AddCharset UCS-2        .ucs2
        AddCharset UCS-4        .ucs4
        AddCharset UTF-8        .utf8
        <IfModule mod_negotiation.c>
            LanguagePriority en da nl et fr de el it ja kr no pl pt pt-br ru ltz ca es sv tw
        </IfModule>
        AddType application/x-tar .tgz
        AddEncoding x-compress .Z
        AddEncoding x-gzip .gz .tgz
    If the AddEncoding directives above are commented-out, then you
    </IfModule>
        BrowserMatch "Mozilla/2" nokeepalive
        BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    The following directive disables HTTP/1.1 responses to browsers which
    are in violation of the HTTP/1.0 spec by not being able to grok a
    basic 1.1 response.
        BrowserMatch "RealPlayer 4\.0" force-response-1.0
        BrowserMatch "Java/1\.0" force-response-1.0
        BrowserMatch "JDK/1\.0" force-response-1.0
    </IfModule>
    End of browser customization directives
    <IfModule mod_sapcs.cpp>
      AddModuleInfo ContentServer "SAP Content Server 6.30"
      CSConfigPath /apache/kprcs/conf/cs.conf
      <Location /sapcs>
      SetHandler sapcs_module
      Allow from all
      </Location>
      <Location /ContentServer/ContentServer.dll>
      SetHandler sapcs_module
      Allow from all
      </Location>
      <Location /contentserver/contentserver.dll>
      SetHandler sapcs_module
      Allow from all
      </Location>
    </IfModule>
    =================================================================
    Could anyone help in solving this issue?
    Regards,
    HP Basis

    Hi,
    I am also getting the same error.
    How did you managed to solve it?
    Thanks for any guidance,
    Abdul

  • Error when attempting to click "Solved" button in forum

    I have noted other users commenting that clicking on the Solved button produces an error. The post is not marked as Solved (with the Green Star) and points are not award. Here are three examples.
    http://discussions.apple.com/message.jspa?messageID=5354984
    http://discussions.apple.com/message.jspa?messageID=5354560
    http://discussions.apple.com/message.jspa?messageID=5352797
    I think there was one more, but I could not find the topic again. This seemed to be happening during the last 24 hours (09/15/07). I don't know if this is isolated to my user account, or if others are also affected. I'm not concerned too much about the "points" but thought it should be reported.

    Hi Kenichi!
    Here are two other previously posted Topics, in Feedback About Discussions, where this issue has also been reported.
    ERROR when hitting the "helpful" or "solved" buttons
    Error when trying to mark a reply as "solved"
    ali b

  • How to create virtual directory in apache

    Hi,
    Im using oas9i on windows platform. I would like to share image files(folder named 'gambar') from different windows server. I had mapped network drive and configured 'alias' in apache(httpd.conf), but didnt work. Could you verify whether 'alias' method is correct or not OR is there anyway to make my webserver able to share/load image with diffrent server.
    Alias /gambar/ "h:/gambar/"
    <directory>
    Option Indexes FollowSymLinks Multiviews
    AllowOverride all
    Order allow, deny
    Allow from all
    </directory>
    Thank you.

    Try:
    Alias /gambar "h:\gambar\"
    <directory "h:\gambar">
    Option Indexes FollowSymLinks Multiviews ExecCGI
    AllowOverride all
    Order allow, deny
    Allow from all
    </directory>

  • Webaccess on SLES10: ERROR org.apache.catalina.startup.HostC

    Hi,
    How to solve:
    ERROR org.apache.catalina.startup.HostConfig - Error deploying web application directory gw
    java.lang.UnsupportedClassVersionError: com/novell/webaccess/WebAccessServlet (Unsupported major.minor version 49.0)
    While java -version shows:
    java version "1.5.0"
    Java(TM) 2 Runtime Environment, Standard Edition (build pxi32dev-20061002a (SR3) )
    IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32 j9vmxi3223-20061001 (JIT enabled)
    J9VM - 20060915_08260_lHdSMR
    JIT - 20060908_1811_r8
    GC - 20060906_AA)
    JCL - 20061002
    And the manual says:
    OES 2 Linux / SLES 10
    Apache 2.2 plus:
    Tomcat 5 or later
    Tomcat 5 is included with the Linux operating system.
    JRE 5 or later
    ModProxy Module
    And rpm -qa | grep java
    java-1_5_0-ibm-1.5.0_sr3-13.10
    With regards,
    Alex

    On 1/30/2012 1:56 AM, twslex3 wrote:
    >
    > Hi,
    >
    > How to solve:
    >
    > ERROR org.apache.catalina.startup.HostConfig - Error deploying web
    > application directory gw
    > java.lang.UnsupportedClassVersionError:
    > com/novell/webaccess/WebAccessServlet (Unsupported major.minor version
    > 49.0)
    >
    > While java -version shows:
    > java version "1.5.0"
    > Java(TM) 2 Runtime Environment, Standard Edition (build
    > pxi32dev-20061002a (SR3) )
    > IBM J9 VM (build 2.3, J2RE 1.5.0 IBM J9 2.3 Linux x86-32
    > j9vmxi3223-20061001 (JIT enabled)
    > J9VM - 20060915_08260_lHdSMR
    > JIT - 20060908_1811_r8
    > GC - 20060906_AA)
    > JCL - 20061002
    >
    > And the manual says:
    > OES 2 Linux / SLES 10
    > Apache 2.2 plus:
    > Tomcat 5 or later
    > Tomcat 5 is included with the Linux operating system.
    > JRE 5 or later
    > ModProxy Module
    >
    > And rpm -qa | grep java
    > java-1_5_0-ibm-1.5.0_sr3-13.10
    >
    >
    > With regards,
    >
    > Alex
    >
    >
    Sorry, you are not running Java 5. I know you think you are, and I
    don't know how to prove there is an older Java (probably 1.42) installed
    somewhere). But there is
    > java.lang.UnsupportedClassVersionError:
    > com/novell/webaccess/WebAccessServlet (Unsupported major.minor version
    > 49.0)
    This error can ONLY occur if the JVM is running too old a version. As it
    happens 49.0 is 5.0 (50 is 6.0, 51 is 7.0).
    java -version doesn't prove much. (that proves a version of java you
    have is 1.5, but not that tomcat is running it). Go to the tomcat dirs,
    find the bin directory and try running startup.sh directly there. IIRC
    it spits out the JAVA_HOME var it is using.

  • Apache doen't load php module

    I've tried to get php running on the apache server on leopard. I've modified the httpd.conf to load the php5 module (removed the #) but when i open a php file, the screen is blank, and the source shows the php code.
    I tried to stop and restart the webserver but it didn't help
    Does anyone know what the problem could be? It could be the httpd.conf file, does anyone have a working version of this file? Thanks.

    I solved the problem,
    Apache did load the php module, it just didn't see that the files were php. There was a problem with the extensions. The original phpinfo file was saved as .rtf and then changed to .php. Apparently apache didn't recognize the file as php.
    I made a new file and saved it as .php from the beginning. Problem solved.

  • Can't see the icons on Forms Server

    Hi
    I have a little, but at the same time great for me.
    I can't see the icons on the Forms Server, and I have translated
    all Icons to Gifs.
    I need re-compile the forms to apply this changes?
    Where I have put the icons? (The correct path on the Alias of
    Apache)
    Thanks and best regards.
    Carlos Hernandez
    Barcelona

    Hi
    I just got my Apache web server running and added the images
    into a folder in the ORACLE_HOME\Apache\Apache folder. Then in
    the httpd.conf file look for where to add an Alias add in your
    Reports virtual path along with the directory and stop and start
    the apache web server then open the forms. Good luck
    -Nina

  • Please help!  Strange problem with HTTPD.Conf and OC4J (I think)

    Hi,
    We have been trying to configure the 10g "infrastructure" Apache server/instance to work with our own authentication module, and as part of this, we need to configure a directory alias containing some of our JSPs. To do this, the only thing that we did was that we took the standard HTTPD.CONF file that got installed with the 10g AS installation, and added a small section at the end.
    However, we are finding that if our addition to the HTTPD.CONF is included, instead of the JSPs in our aliased directory being processed, Apache seems to be just serving the JSPs as text pages :(..
    If we remove the section at the end of the HTTPD.CONF, and point a browser to the unaliased path, the JSPs get processed correctly.
    I was wondering if anyone here might take a look at our HTTPD.CONF below, and tell me if you can see something there that might be causing this behavior? The section that we added is at the very end. We think that the problem might be something like the "order" of the directives, etc. in the HTTPD.CONF file may be such that the alias is taking priority ahead of the OC4J, or something like that.
    Thanks in advance, and apologies for the long message.
    Jim
    =====================================================
    ServerType standalone
    ServerRoot "/orad59/10gAS/infrastructure/Apache/Apache"
    PidFile /orad59/10gAS/infrastructure/Apache/Apache/logs/httpd.pid
    ScoreBoardFile /orad59/10gAS/infrastructure/Apache/Apache/logs/httpd.scoreboard
    Timeout 300
    KeepAlive On
    MaxKeepAliveRequests 100
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 20
    StartServers 5
    MaxClients 150
    MaxRequestsPerChild 0
    LoadModule onsint_module libexec/mod_onsint.so
    LoadModule mmap_static_module libexec/mod_mmap_static.so
    LoadModule vhost_alias_module libexec/mod_vhost_alias.so
    LoadModule env_module libexec/mod_env.so
    LoadModule define_module libexec/mod_define.so
    LoadModule config_log_module libexec/mod_log_config.so
    LoadModule agent_log_module libexec/mod_log_agent.so
    LoadModule referer_log_module libexec/mod_log_referer.so
    LoadModule mime_magic_module libexec/mod_mime_magic.so
    LoadModule mime_module libexec/mod_mime.so
    LoadModule negotiation_module libexec/mod_negotiation.so
    LoadModule status_module libexec/mod_status.so
    LoadModule info_module libexec/mod_info.so
    LoadModule includes_module libexec/mod_include.so
    LoadModule autoindex_module libexec/mod_autoindex.so
    LoadModule dir_module libexec/mod_dir.so
    LoadModule cgi_module libexec/mod_cgi.so
    LoadModule asis_module libexec/mod_asis.so
    LoadModule imap_module libexec/mod_imap.so
    LoadModule action_module libexec/mod_actions.so
    LoadModule speling_module libexec/mod_speling.so
    LoadModule userdir_module libexec/mod_userdir.so
    LoadModule alias_module libexec/mod_alias.so
    LoadModule access_module libexec/mod_access.so
    LoadModule auth_module libexec/mod_auth.so
    LoadModule anon_auth_module libexec/mod_auth_anon.so
    LoadModule dbm_auth_module libexec/mod_auth_dbm.so
    LoadModule digest_module libexec/mod_digest.so
    LoadModule proxy_module libexec/libproxy.so
    LoadModule cern_meta_module libexec/mod_cern_meta.so
    LoadModule expires_module libexec/mod_expires.so
    LoadModule headers_module libexec/mod_headers.so
    LoadModule usertrack_module libexec/mod_usertrack.so
    LoadModule unique_id_module libexec/mod_unique_id.so
    LoadModule setenvif_module libexec/mod_setenvif.so
    LoadModule perl_module libexec/libperl.so
    LoadModule fastcgi_module libexec/mod_fastcgi.so
    <IfDefine SSL>
    LoadModule ossl_module libexec/mod_ossl.so
    </IfDefine>
    LoadModule wchandshake_module libexec/mod_wchandshake.so
    ExtendedStatus On
    Port 7777
    Listen 7777
    User oracle
    Group dba
    ServerAdmin [email protected]
    ServerName ge1ssd04.test.com
    DocumentRoot "/orad59/10gAS/infrastructure/Apache/Apache/htdocs"
    <Directory />
    Options FollowSymLinks MultiViews
    AllowOverride None
    </Directory>
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/htdocs">
    Options Indexes FollowSymLinks MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    <IfModule mod_userdir.c>
    UserDir public_html
    </IfModule>
    <IfModule mod_dir.c>
    DirectoryIndex index.html
    </IfModule>
    AccessFileName .htaccess
    <Files ~ "^\.ht">
    Order allow,deny
    Deny from all
    </Files>
    UseCanonicalName On
    <IfModule mod_mime.c>
    TypesConfig /orad59/10gAS/infrastructure/Apache/Apache/conf/mime.types
    AddEncoding x-compress Z
    AddEncoding x-gzip gz tgz
    AddLanguage ar .ar
    AddLanguage da .dk .da
    AddLanguage nl .nl
    AddLanguage en .en
    AddLanguage et .ee
    AddLanguage fi .fi
    AddLanguage fr .fr
    AddLanguage de .de
    AddLanguage el .el
    AddLanguage es .es_ES .es
    AddLanguage he .he .iw
    AddLanguage hu .hu
    AddCharset ISO-8859-8 .iso8859-8
    AddLanguage it .it
    AddLanguage ja .ja
    AddCharset ISO-2022-JP .jis
    AddLanguage ko .ko
    AddLanguage kr .kr
    AddCharset ISO-2022-KR .iso-kr
    AddLanguage nn .nn
    AddLanguage no .no
    AddLanguage pl .po
    AddCharset ISO-8859-2 .iso-pl
    AddLanguage pt .pt
    AddLanguage pt-br .pt_BR .pt-br
    AddLanguage ltz .lu
    AddLanguage ca .ca
    AddLanguage sk .sk
    AddLanguage sv .sv
    AddLanguage th .th
    AddLanguage tr .tr
    AddLanguage cz .cz .cs
    AddLanguage ro .ro
    AddLanguage ru .ru
    AddLanguage zh-cn .zh_CN
    AddLanguage zh-tw .zh_TW
    AddCharset Big5 .Big5 .big5
    AddCharset WINDOWS-1251 .cp-1251
    AddCharset CP866 .cp866
    AddCharset ISO-8859-5 .iso-ru
    AddCharset KOI8-R .koi8-r
    AddCharset UCS-2 .ucs2
    AddCharset UCS-4 .ucs4
    AddCharset UTF-8 .utf8
    <IfModule mod_negotiation.c>
    LanguagePriority ar en da nl et fi fr de el it ja ko kr no pl pt pt-br ro ru ltz ca es sk sv th tr zh-cn zh-tw zh-cn
    </IfModule>
    AddType application/x-tar .tgz
    </IfModule>
    DefaultType text/plain
    <IfModule mod_mime_magic.c>
    MIMEMagicFile /orad59/10gAS/infrastructure/Apache/Apache/conf/magic
    </IfModule>
    HostnameLookups Off
    ErrorLog "|/orad59/10gAS/infrastructure/Apache/Apache/bin/rotatelogs /orad59/10gAS/infrastructure/Apache/Apache/logs/error_log 43200"
    LogLevel warn
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common
    LogFormat "%{Referer}i -> %U" referer
    LogFormat "%{User-agent}i" agent
    CustomLog "|/orad59/10gAS/infrastructure/Apache/Apache/bin/rotatelogs /orad59/10gAS/infrastructure/Apache/Apache/logs/access_log 43200" common
    ServerSignature On
    <IfModule mod_alias.c>
    Alias /icons/ "/orad59/10gAS/infrastructure/Apache/Apache/icons/"
    Alias /jservdocs/ "/orad59/10gAS/infrastructure/Apache/Jserv/docs/"
    Alias /javacachedocs/ "/orad59/10gAS/infrastructure/javacache/javadoc/"
    <IfModule mod_perl.c>
    Alias /perl/ "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin/"
    </IfModule>
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
    </Directory>
    ScriptAlias /cgi-bin/ "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin/"
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/cgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    </Directory>
    </IfModule>
    <IfModule mod_autoindex.c>
    IndexOptions FancyIndexing
    AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
    AddIconByType (TXT,/icons/text.gif) text/*
    AddIconByType (IMG,/icons/image2.gif) image/*
    AddIconByType (SND,/icons/sound2.gif) audio/*
    AddIconByType (VID,/icons/movie.gif) video/*
    AddIcon /icons/binary.gif .bin .exe
    AddIcon /icons/binhex.gif .hqx
    AddIcon /icons/tar.gif .tar
    AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
    AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
    AddIcon /icons/a.gif .ps .ai .eps
    AddIcon /icons/layout.gif .html .shtml .htm .pdf
    AddIcon /icons/text.gif .txt
    AddIcon /icons/c.gif .c
    AddIcon /icons/p.gif .pl .py
    AddIcon /icons/f.gif .for
    AddIcon /icons/dvi.gif .dvi
    AddIcon /icons/uuencoded.gif .uu
    AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
    AddIcon /icons/tex.gif .tex
    AddIcon /icons/bomb.gif core
    AddIcon /icons/back.gif ..
    AddIcon /icons/hand.right.gif README
    AddIcon /icons/folder.gif ^^DIRECTORY^^
    AddIcon /icons/blank.gif ^^BLANKICON^^
    ReadmeName README
    HeaderName HEADER
    IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
    </IfModule>
    <IfModule mod_setenvif.c>
    BrowserMatch "Mozilla/2" nokeepalive
    BrowserMatch "MSIE 4\.0b2;" nokeepalive downgrade-1.0 force-response-1.0
    BrowserMatch "RealPlayer 4\.0" force-response-1.0
    BrowserMatch "Java/1\.0" force-response-1.0
    BrowserMatch "JDK/1\.0" force-response-1.0
    </IfModule>
    <Location /server-status>
    SetHandler server-status
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    SetEnv PERL5LIB "/orad59/10gAS/infrastructure/perl/lib/5.6.1:/orad59/10gAS/infrastructure/perl/lib/site_perl/5.6.1"
    <IfModule mod_perl.c>
    PerlModule Apache
    PerlModule Apache::Registry
    <Location /perl>
    SetHandler perl-script
    PerlHandler Apache::Registry
    AddHandler perl-script .pl
    Options +ExecCGI
    PerlSendHeader On
    </Location>
    </IfModule>
    <DirectoryMatch /WEB-INF/>
    Order deny,allow
    Deny from all
    </DirectoryMatch>
    <IfModule mod_fastcgi.c>
    Alias /fastcgi/ "/orad59/10gAS/infrastructure/Apache/fastcgi/"
    ScriptAlias /fcgi-bin/ "/orad59/10gAS/infrastructure/Apache/Apache/fcgi-bin/"
    <Directory "/orad59/10gAS/infrastructure/Apache/Apache/fcgi-bin">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
    SetHandler fastcgi-script
    <IfModule mod_ossl.c>
    SSLOptions +StdEnvVars
    </IfModule>
    </Directory>
    </IfModule>
    PassEnv ORACLE_HOME
    PassEnv LD_LIBRARY_PATH
    PassEnv NLS_LANG
    PassEnv TNS_ADMIN
    <IfModule mod_oprocmgr.c>
    <Location /oprocmgr-service>
    SetHandler oprocmgr-service
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    <Location /oprocmgr-status>
    SetHandler oprocmgr-status
    Order deny,allow
    Deny from all
    Allow from localhost ge1ssd04.test.com ge1ssd04
    </Location>
    </IfModule>
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/mod_oc4j.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/dms.conf"
    LoadModule rewrite_module libexec/mod_rewrite.so
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/ssl.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/mod_osso.conf"
    include "/orad59/10gAS/infrastructure/Apache/Apache/conf/oracle_apache.conf"
    # MY ADDITIONS TO HTTPD.CONF GO BELOW HERE....
    LoadModule my_auth_module /opt/myagent/apache/lib/libmy_apache_agent_mod_ssl.so
    AddModule my_apache_mod.c
    <IfModule my_apache_mod.c>
         MYAgentRoot /opt/myagent/apache
    </IfModule>
    <IfModule my_apache_mod.c>
    <Location />
    AuthType Basic
    Require valid-user
    AuthName MYAUTH
    </Location>
    </IfModule>
    <IfModule my_apache_mod.c>
    Alias /mydir/ "/orad59/10gAS/infrastructure/j2ee/OC4J_SECURITY/applications/sso/web/jsp/myagentdir/"
    <Directory "/orad59/10gAS/infrastructure/j2ee/OC4J_SECURITY/applications/sso/web/jsp/myagentdir/">
    AuthType Basic
    Require valid-user
    AuthName MYAUTH
    </Directory>
    </IfModule>

    Hi,
    I wanted to post what we found on this.
    As indicated in my original msg, we had an Alias directory in the httpd.conf. However, after thinking about the problem a bit, I think that the Alias was not the right thing to do.
    The Alias tells Apache to map a URL fragment to a FILESYSTEM location. Well, obviously, Apache only SERVES pages... it doesn't process JSPs.
    We switched to using a Redirect directive instead of the Alias, and things worked a little better, but we've run into a bit of a problem with "Redirect looping", but that's a different story :)...
    Jim

  • Problem intregrating Flash help usingRobohelp 8.0 into J2EE project

    Hi,
    I have am working on J2EE project and I have a small issue with getting Flash to run off my localhost server.  I have managed to get the webhelp working but I want to see what the help looks like using flash. I am getting and error when I am trying load the index file:
    "invalid path was requested /application/FlashHelp/whproj"
    I am using have Apache 6.0, struts 1.2.  It loads from the hard drive in both IE and FIrefox but not when I am running from the server.  When running on localhost in Firefox it loads the righthand contents page but none of the dynamic content.  In IE8 it load nothing at all (I assume because it doesn't know what to do after the error is thrown).
    Can anyone shed some light on this topic?
    thanks

    The problem is solved.  The apache server was filtering out .xml files so it was not loading whproj.xml thus all the other *.xml and subsequent flash objects were not loading.  That was only 2 days of trial and error.

Maybe you are looking for

  • Cannot Install Windows 7 with AHCI mode

    Hello, Having just submitted a support ticket to MSI, I was curious to see if anyone else has experienced a similar issue or may be able to suggest a possible resolution. I recently purchased a MSI Z87-G41 PC Mate for an htpc build. I've ran into an

  • Files are skipped

    Hi, in my scenario where we used to process files of 300 mb of files.The file is split  to 10 mb each using the scripts and then processed. Here like out of 30 files only 20 files are processed some of the files are skipped. No message is created in

  • E-Recruitment - WDA - HRRCF_C_APPL_SEND_UI - Any Idea?

    Hi, My E-Recruitment system (ECC 6.0 and SP10) uses Web Dyn Pro ABAP (WDA) application for Internal and External candidate. My requirement is to set the application status to ‘Reject’ if he is not completed 1 month with his current position  when Int

  • Can't find Tutorial Projects

    Hi, I'm trying to learn how to use Motion and following the Tutorial instructions for getting started and in the Shared folder I can't seem to find the Tutorial folder. I assume there was a problem in the installation process or I accidently erased i

  • Error When Trying to use Steam... Please Help!!

    I have been trying to use Steam on my computer but for some reason it comes up with an error that reads, +*"SteamStartEngine(0xbfffdd58)failed with error 1:CMultiFieldBlob(pSerialized): Badfield-Extends past Blob"*+ Does anyone know what this means..