Apache help server configuration needed (1 Viewer)

joz

Portal Pro
March 17, 2008
1,353
306
Home Country
Netherlands Netherlands
Hey all,

First of all little background to this.
I call my self a webdeveloper here but I'm getting clueless and hoping some of you could help me out with this.
I run a windows XP SP3 x86 machine as my htpc and webserver and what not (some gaming maybe) in the living. It's kinda my personal playground as well, has some issues but also has some cool stuff going on, as I would say my self.

So I've been running webservers (2 of them, iis and apache latest) to expose some of the htpc's content to the web. Now that I got a proper phone (an iPhone :)) I wanted to check out iPimp to see how it feels and all.
iPimp comes with apache which I do not need so I have to do some configuration myself. Also already posted to the ipimp thread for some help (no reply yet though, getting impatient ;)).

What I need to do as I see it is configure apache to;
1) use aspdotnet module, easy one. works ok as far as I checked
2) Setup a virtual host (already running other webstuff on port 80, apache) because otherwise the relative url's of iPimp won't be any good. Planning to run on 8181
3) Get windows permissions right. For now, just for testings sake, I set the everyone user to do everything so should be ok

So far so good, so I went ahead doing the config bit but I keep running into 403 forbidden errors. This is what I got so far (extract of httpd.conf)
[collapse]
LoadModule aspdotnet_module modules/mod_aspdotnet.so
#and a lot of others, all required are loaded

<VirtualHost *:8181>
ServerAdmin some@email.com
ServerName some.uri
ErrorLog "logs/ipimp_error.log"
CustomLog "logs/ipimp_access.log" common
DocumentRoot "C:/Program Files/iPiMP/Aspx/"

AddHandler asp.net asax ascx ashx asmx aspx axd config cs csproj licx rem resources resx soap vb vbproj vsdisco webinfo
Alias "C:/Program Files/iPiMP/Aspx/" ##DOCUMENTROOT##"
Alias /TVLogos "##TVIMAGEROOT##"
Alias /MP4 "##MP4ROOT##"

AspNetMount / "##DOCUMENTROOT##"

<Directory "##DOCUMENTROOT##">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
DirectoryIndex Default.aspx
</Directory>

<Directory "##TVIMAGEROOT##">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
</Directory>

<Directory "##MP4ROOT##">
Options FollowSymlinks ExecCGI
Order allow,deny
Allow from all
</Directory>

AliasMatch /aspnet_client/system_web/(\d+)_(\d+)_(\d+)_(\d+)/(.*) "C:/Windows/Microsoft.NET/Framework/v$1.$2.$3/ASP.NETClientFiles/$4"
<Directory "C:/Windows/Microsoft.NET/Framework/v*/ASP.NETClientFiles">
Options FollowSymlinks
Order allow,deny
Allow from all
</Directory>
</VirtualHost>


<VirtualHost *:80>
ServerAdmin some@email.com
DocumentRoot "C:/Program Files/Apache Software Foundation/Apache2.2/htdocs"
ServerName some.uri

ProxyPass /somedir/ some.uri:someport
ProxyPass /somedir some.uri:someport
ProxyPass /somedit/ some.uri:someport
#block hotlinking images
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !some.uri [NC]
RewriteCond %{HTTP_REFERER} !some.uri[NC]
RewriteCond %{HTTP_REFERER} !192\.168 [NC]
RewriteRule \.(gif|jpe?g|png)$ http://i50.tinypic.com/2yya5oh.jpg [NC,L]

#set expries and ETags
FileETag none
ExpiresActive On
ExpiresByType image/gif "access plus 10 years"
ExpiresByType image/jpeg "access plus 10 years"
ExpiresByType image/png "access plus 10 years"
ExpiresByType text/css "access plus 10 years"
ExpiresByType image/x-icon "access plus 10 years"
ExpiresByType application/javascript "access plus 10 years"
ExpiresByType application/x-javascript "access plus 10 years"
</VirtualHost>
[/collapse]

I know some of you out there know this stuff, seen some other webdev's roaming these places. Please help me out here! :D alot!
 

Users who are viewing this thread

Top Bottom