Advertisement

06.06.2008 at 01:04AM PDT, ID: 23462959
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.8

Serve Static files with Apache 1.x

Asked by oleber in Apache Web Server, Perl Programming Language, Linux Administration

Tags:

I have this httpd.conf.

The mod_perl works 100% but I need to deliver some static file like http://xpto.com/http_static/file.html and I have already try a little bit of everything.


What am I doing wrong?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
ServerType standalone
ServerRoot "/servers/apache"
PidFile /servers/new-oleber/apache/var/run/httpd.pid
ScoreBoardFile /servers/new-oleber/apache/var/run/httpd.scoreboard
ServerName oleber.xpto.pt
 
Timeout 6 
 
KeepAlive 100
KeepAliveTimeout 10
 
# The StartServers directive sets the number of child server processes created
# on startup. As the number of processes is dynamically controlled depending
# on the load, there is usually little reason to adjust this parameter.
 
#StartServers 192
StartServers 4
MinSpareServers 4
MaxSpareServers 4
MaxRequestsPerChild 0
MaxClients 10
 
Port 20001
 
User xpto
Group xpto
 
ServerAdmin xpto@xpto.com
 
PerlSetEnv DEBUG 1
PerlSetEnv CONFIGFILE /servers/new-oleber/etc/config.yml
Perlrequire /servers/new-oleber/apache/startup.pl
 
#AddHandler perl-script .pl
#PerlModule CGI
PerlSetupEnv On
 
ClearModuleList
AddModule mod_access.c 
AddModule mod_perl.c
AddModule mod_status.c
AddModule mod_so.c
AddModule mod_mime.c
AddModule mod_log_config.c 
AddModule mod_alias.c 
 
ExtendedStatus On
 
NameVirtualHost *:80
<VirtualHost *>
	ServerName oleber.xpto.pt
	DocumentRoot /servers/new-oleber/apache/share/htdocs
 
	<Location />
		SetHandler  perl-script
		PerlHandler Oleber::Apache::XPTOHandler
		PerlSetVar devel 1
		<IfDefine SMALLPROF>
			PerlFixupHandler Apache::SmallProf
		</IfDefine>
	</Location>
 
	<Location /service>
		SetHandler  perl-script
 
		PerlHandler Oleber::Apache::ServiceHandler
		PerlSetVar devel 1
		<IfDefine SMALLPROF>
			PerlFixupHandler Apache::SmallProf
		</IfDefine>
	</Location>
	
    <Location /email>
        SetHandler  perl-script
        PerlModule Apache::Resource
        PerlSetEnv PERL_RLIMIT_AS 30:40
        PerlHandler Oleber::Apache::EmailHandler
    </Location>
 
 
    Alias /http_static /servers/new-oleber/http_static
    <Directory /servers/new-oleber/http_static>
	Options Indexes FollowSymLinks
	Order Allow,Deny
	Allow from all
	AllowOverride all 
    </Directory>
 
</VirtualHost>
 
UseCanonicalName On
 
HostnameLookups Off
 
ErrorLog /servers/new-oleber/apache/var/logs/pesquisa.error_log
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{XPTO-SEARCH-ARGS}i\"" combined
CustomLog /servers/new-oleber/apache/var/logs/pesquisa.access_log combined
[+][-]06.06.2008 at 06:34AM PDT, ID: 21728873

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Apache Web Server, Perl Programming Language, Linux Administration
Tags: Apache
Sign Up Now!
Solution Provided By: ravenpl
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628