Sponsored Content
Full Discussion: Apache2 configuration
Top Forums Web Development Apache2 configuration Post 302732125 by yifangt on Friday 16th of November 2012 04:02:44 PM
Old 11-16-2012
Apache2 configuration

Hello,
I am trying to understand the basic of Apache when I met problem each time I restart apache.
How to solve the problem when I need put a second ScriptAlias line in my "/etc/apache2/sites-enabled/000-default" file:

Code:
16    ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
17 <Directory "/usr/lib/cgi-bin">
 18           AllowOverride None
 19           Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
 20           Order allow,deny
 21           Allow from all
 22      </Directory>

 41      ScriptAlias /cgi-bin/ /var/www/blast/
 42      <Directory "/var/www/blast">
 43           AddHandler cgi-script cgi REAL
 44           AllowOverride None
 45           Options Indexes FollowSymlinks +ExecCGI MultiViews +SymLinksIfOwnerMatch
 46           Order allow,deny
 47           Allow from all
 48      </Directory>

$ sudo /etc/init.d/apache2 restart
Code:
* Restarting web server apache2                                                                                                                            [Fri Nov 16 14:21:37 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/000-default at line 41 will probably never match because it overlaps an earlier ScriptAlias.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
 ... waiting [Fri Nov 16 14:21:38 2012] [warn] The ScriptAlias directive in /etc/apache2/sites-enabled/000-default at line 41 will probably never match because it overlaps an earlier ScriptAlias.
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 for ServerName
[ OK ]

$

My understanding is the first ScriptAlias is the default of my Ubuntu box. But The second ScriptAlias of line 41 is needed for my program. Do they conflict each other? Thanks a lot!
Yifang
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Configuration

Can anyone please tell me anything about the following: AIX O/S - IBM RS6000 server I want to know where I can go to check and see how much RAM is intalled in the server, how many Processors are installed in the server, and how I can run a sar command to show me processor statistics? I... (4 Replies)
Discussion started by: Docboyeee
4 Replies

2. BSD

X configuration

HEllo, I try to Launch OOO, but I have X configuration problem. I 'm searching in man pages but if someone can help me... Of course I set the DISPLAY as explain in the man page but with no more result: setenv DISPLAY myws:0 Thanks in advance (1 Reply)
Discussion started by: SoulCoder
1 Replies

3. Post Here to Contact Site Administrators and Moderators

configuration

how to configure servor dns on windows servor 2003 (0 Replies)
Discussion started by: djest
0 Replies

4. Linux

configuration

hello, I don't know how to configure servor dns on linux,please help I thanck YOU (1 Reply)
Discussion started by: djest
1 Replies

5. AIX

Need help on IP Configuration

I have an RS/6000 running AIX 5.3. I would like to get either dhcp client working or assigning it an ip would be fine as well. I have tried using smit to do it many times trying different things, and I can get an ip assigned but it doesn't communicate with the network or internet. I haven't been... (3 Replies)
Discussion started by: izzzy
3 Replies

6. Red Hat

nagios configuration

HI all, This is my first topic in this forum. I have a test environment which has a fedora in it and i installed nagios 3.0.6 I added windows clients into it. But i am not getting informative outputs from it. Can anyone tell me where i can edit inorder to get a more informative garph output.... (4 Replies)
Discussion started by: Renjesh
4 Replies

7. AIX

DNS configuration help

I'm trying to configure DNS on a AIX 5.4 machine and I just can't figure it out. The IBM guide doesn't work. Smit also doesn't work. I have no idea how to make this happen. (2 Replies)
Discussion started by: madavid0
2 Replies

8. Solaris

RSC configuration

Hi All, Please send the configuration for RSC in solaris. Thanks and Regards, (3 Replies)
Discussion started by: lbreddy
3 Replies

9. Solaris

step step apache2 configuration doc

Hi Guys, does anyone know of a step by step guide on how configure apache2 web server in solaris 10? I will really appreciate it. Thanks a lot (1 Reply)
Discussion started by: cjashu
1 Replies

10. UNIX for Beginners Questions & Answers

Lsyncd Configuration

Hi All, Hope you all doing good. I'm facing some issue while syncing data using lsyncd. I'm working on a project to migrate data from a source S3 bucket to target S3 bucket. Both buckets has been configured via AWS storage gateway and shared to Linux servers as nfs shares. The data size on... (5 Replies)
Discussion started by: arun_adm
5 Replies
Apache2::SiteControl::User(3pm) 			User Contributed Perl Documentation			   Apache2::SiteControl::User(3pm)

NAME
Apache2::SiteControl::User - User representations SYNOPSIS my $user = Apache2::SiteControl->getCurrentUser($r); # $r is the apache request object # Checking out the user's name: if($user->getUsername eq 'sam') { ... } ... # Working with attributes (session persistent data) my $ssn = $user->getAttribute('ssn'); $user->setAttribute($r, 'ssn', '333-555-6666'); # Removing/invalidating session for the user $user->logout($r); DESCRIPTION The SiteControl system has a base concept of a user which includes the user's name, persistent attributes (which are persistent via session), and support for user logout. It is assumed that you will be working from mod_perl, and some of the methods require an Apache request object. The request object is used by some methods to coordinate access to the actual session information in the underlying system (for storing attributes and implementing logout). User objects are created by a factory (by default Apache2::SiteControl::UserFactory), so if you subclass User, you must understand the complete interaction between the factory (which is responsible for interfacing with persistence), the SiteControl, etc. The default implementation of User and UserFactory use AuthCookie to manage the sessions, and Apache::Session::File to store the various details about a user to disk. If you are using Apache2::SiteControl::User and Apache::SiteControl::UserFactory (the default and recommended), then you should configure the following parameters in your apache configuration file: # This is where the session data files will be stored SiteControlSessions directory_name # This is where the locks will be stored SiteControlLocks directory_name These two directories should be different, and should be readable and writable by the apache daemon only. They must exist before trying to use SiteControl. METHODS
getUsername Get the name that the current user used to log in. getAttribute($name) Get the value of a previously stored attribute. Returns undef is there is no value. setAttribute($request, $name, $value) Add an attribute (scalar data only) to the current session. The current apache request object is required (in order to figure out the session). Future versions may support more complex storage in the session. This attribute will stay associated with this user until they log out. logout($request) Log the user out. If you do not pass the current apache request, then this method will log an error to the apache error logs, and the user's session will continue to exist. SEE ALSO
Apache2::SiteControl::UserFactory, Apache::SiteControl::ManagerFactory, Apache2::SiteControl::PermissionManager, Apache::SiteControl AUTHOR
This module was written by Tony Kay, <tkay@uoregon.edu>. COPYRIGHT AND LICENSE
This modules is covered by the GNU public license. perl v5.14.2 2006-03-17 Apache2::SiteControl::User(3pm)
All times are GMT -4. The time now is 09:29 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy