Apache Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationApache Development
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old December 20th, 2002, 10:38 AM
pgudge pgudge is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: South Yorkshire
Posts: 442 pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 13 m 48 sec
Reputation Power: 21
Rewrite Proxy i think?

I've read through this forum but cant seem to get anything to work.

I dont have access to the httpd.conf on my online space, i contacted the provider and they said rewrites are not blocked.

This is what I have.

Code:
RewriteEngine on
#RewriteBase /
RewriteRule ^(.*)$ http://myownserver.com/html$1 [R] 


So that when i go to

http://myspace.someISP.com/ I want it to say on this URL in the browsers but load the contents of http://myownserver.com/html/

Hope that was english enough
__________________
regards,

pgudge

Reply With Quote
  #2  
Old December 26th, 2002, 10:23 AM
pippo's Avatar
pippo pippo is offline
A PAtCHy sErver
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Italy
Posts: 408 pippo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 27 sec
Reputation Power: 11
Hi,
I don't think it's possible with a 100% Apache solution,
but you could use a mix of Apache and Php.

I'd suggest this:

Server:
myspace.someISP.com

/.htaccess
Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !/pippo.php [NC]
RewriteRule ^(.*)$ /pippo.php [L]


/pippo.php
PHP Code:
<?php
readfile
"http_://myownserver.com/html/".$_SERVER'REQUEST_URI' ] );
?>


for that you need to have inside your php.ini
allow_url_fopen = On
to enable fopen wrappers

and php, obviously!



Hope It Helps!

pippo

Last edited by pippo : December 26th, 2002 at 10:28 AM.

Reply With Quote
  #3  
Old December 27th, 2002, 09:34 AM
pgudge pgudge is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: South Yorkshire
Posts: 442 pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 13 m 48 sec
Reputation Power: 21
I have no apache or php configuration rights

so i wont be able to set the php

allow_url_fopen = On

unless it's set by default.

p

Reply With Quote
  #4  
Old December 27th, 2002, 10:57 AM
pippo's Avatar
pippo pippo is offline
A PAtCHy sErver
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2001
Location: Italy
Posts: 408 pippo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 27 sec
Reputation Power: 11
Default is on,
but if eventually it's off (check the phpinfo) then you can set it on using .htaccess or inside a php script.

So it's not a problem,

Reply With Quote
  #5  
Old December 29th, 2002, 10:39 PM
pgudge pgudge is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2001
Location: South Yorkshire
Posts: 442 pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level)pgudge User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 1 Day 7 h 13 m 48 sec
Reputation Power: 21
okay, making matters worse i tried this but I can only run PHP on my cgi server on the first domain.

i.e.

http://mydomain.com and http://cgi.mydomain.com

I can't help think there must be some easy way for doing this using just rewrites, i have some code that when i goto

http://domain.com/mysite/forum/

it loads the code from /forum/ and uses thr request uri to identify the correct database.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationApache Development > Rewrite Proxy i think?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 10 - Follow our Sitemap