cheers, and to ingresman, its obvious what the fault would be from the code i showed... sorry if i didnt explain it properly but like
i=3 i get an error, well der u missed a dollar, dont need to put what the error is ;o)
anyways, i'll read those articles when i have a second!
How can i hide these errors,
for example:
$name = $_POST['name'];
$primary = $_POST['Primary'] ;
if ($primary=='') $primary='OFF';
$alliance = $_POST['Alliance'] ;
if ($alliance=='') $alliance='OFF';
$tournament = $_POST['Tournament'] ;
if ($tournament=='') $tournament='OFF';
$limited =...
OK new problem!
Using the redirect as it is, if the users do a _SERVER['REMOTE_ADDR'] command in PHP they get the server IP 192.168.0.1 returned, instead of the remote address of the client. Which is seriosuly bad news...
Any ideas what I have to do?
Is it my redirect or PHP settings do you...
Cool, PS that is exactly what I have done, but it doesnt resolve between site1.com and site.com that are being redirected to www.i-site.com if that makes sense..
for now im doing this
<virtual host>
servername site1.com
proxypass i-site.com/site1/
etc
</virtual host>
<virtual host>...
Ah i have a new problem.
I used name - based resolving for the domains on my external folder, because they are all redirected through one server, so IP resolving wont work (obviously) problem I have now is that the internal server cannot detect these names, do i have to redriect using the...
Yeah i did, it was taking the request for test.php and parsing that as: 192.168.0.2test.php instead of 192.168.0.2/test.php
I tried putting /* after the IP as i thought maybe it didnt realise that i wanted all pages from the domain to that internal IP, but that said access denied, so i deleted...
Yeah i have been reading the other threads, which say about that, but i dont really understand it, i'll have to keep going through the documentation and experiment on a standalone machine until i can get that sort of stuff to work!
Erm, if i load anything other than the default PHP page i...
This is an easy one!
The problem is that you have no diffenential between the two..
Try putting NameVirtualHost http://site1.com & http://site2.com for the second virtual host, then you will have an identical set up to me so it should work :oD
James
WOW it worked, you are a genius! I think I missed the reverseproxypass bit out and i was just putting proxy pass "internal IP" it works if i put proxypass http://internal IP...
YEY thank you so much, my life is soo much more hassle free now!
I wish to redirect a URL say www.exampleurl.com to an internal ip address which has the SAME eternal IP address...
eg/
Server -> IP =80.11.10.9 or something, internal ip 192.168.0.1
Other machine -> connects to the internet through the server, but is running an apache server also. Reason for...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.