|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| ||||||||||||||||||||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
||||
|
||||
|
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:
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. |
|
#3
|
|||
|
|||
|
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 |
|
#4
|
||||
|
||||
|
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, |
|
#5
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > Rewrite Proxy i think? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|