| pctony | q/quir/quite/ |
| zention | Roobarb: what about mod_alias? |
| Roobarb | no, /etc/hosts is re-read by the system resolver libraries on every new lookup |
| ques2 | ive got MYIP mydomain.com MYIP mydomain2.com in there |
| Roobarb | zention: you'll end up with a redirect loop probably |
| ques2 | by i still cant access MYIP/mydomain.com |
| Roobarb | ques2: restart your browser, assuming you can "ping mydomain.com" |
| ques2 | i can access http://www.mydomain.com thats not a problem |
| pctony | Roobarb: not entirely true, debian, often needs an apache restart to see the new entries |
| ques2 | i just want to access http://myip/mydomain.com for testing |
| gary | Hey guys. I have a site which uses rewrite rules in a .htaccess file - this all works great on my site: www.mysite.com. However, I'm working on http://localhost at the minute so I can do some changes before uploading it, but the .htaccess doesn't work. Each rule is from the / directory. In fact, I don't even think .htaccess is being read as if I put garbage in it, it still ignores it |
| pctony | but hey, semantics :) |
| gary | Any ideas how to get this working? AccessFile is set to .htaccess btew Plus, I am using apache2 if that helps (on ubuntu) |
| niq | htaccess use |
| fajita | htaccess use is If you have access to httpd.conf, there is no reason to use htaccess. You can get a significant performance boost disabling htaccess altogether with AllowOverride None. my RewriteRules will be simpler too! |
| zention | Roobarb: ok thanks :) |
| ques2 | i can access http://www.mydomain.com fine, i just want to access http://myip/mydomain.com for testing |
| gary | niq: But the site will be uploaded afterwards to my site niq: So I still need to/would like to use .htaccess |
| ques2 | and since i am using NameVirtualHost... i guess i need to put something in the hosts file so will M.Y.I.P mydomain.com and M.Y.I.P mydomain2.com be sufficient in the hosts file? |
| pctony | be roy |
| fajita | /I have no confidence that this has ever worked. |
| pctony | be george |
| fajita | [USER] is havening problems with getting on to network,she says she gets nocked of the network. |
| gary | I have: AllowOverride None in my delclaration for /var/www ... fixed it! thanks |
| jink | ques: create a nameless vhost and put that in from of the others. have its documentroot set to the directory that holds all the sites |
| ques | ok thanx jink.. that vhost wont have ServerName? |
| jink | not really. or make it something like "localhost" or "testenv.domain.com" whatever suits your needs, really |
| ques | ok cool |
| pctony | late night jerlique? on a friday too :) |
| magnus__ | I am using apache2 as a proxy with mod_proxy. The problem is if one server goes down behind the proxy, a restart of apache 2 is required before apache2 redirects requests to that server again. Is there any way to avoid this (ie have apache2 to always send requests, even if the server was down last request)? |
| jink | mod_proxy_balancer? |