Debian :: Redirect Apache To Remote Machine Www Content On IIS Server?
Mar 25, 2011
I am trying to show library content (asp files, IIS server, MySQL database on Windows Server 2003 - Inetpub/wwwroot/library - 192.168.0.3) publicly. But Apache webserver is on Linux machine. In one of previos topics I was adviced to mount this remote machine webfolder into Linux /var/www. Well this way it want work. I was adviced it can be done through redirecting.
I have server with Debian and Apache installed. Webpage content located in /var/www folder. For failserver I have Windows server 2003, which runs Mysql service thats needed for library software. And on this machine theres Inetpub/wwwroot with library webcontent. Sofar its only accessible localy. How can make Apche webserver to take content from this local server machine and show it publicly.
I have had a look at the the information on the ubuntu forum about this but am having trouble getting the server to do what i want it to do.
I have a VPS running ubuntu 9.10 and i am trying to set it up to redirect port 25 to a remote machine via a VPN connection (remote machine connected via VPN)
i have tried setting this up in the firewall using webmin but it is not working.
i have a problem........ How to redirect local http port to remote ip ddress(192.168.10.64) using iptables..my destro is Centos 5.3 my rule is this iptables -t nat -A PREROUTING -s 0/0 -d <my local ip> -p tcp --dport 80 -j DNAT --to-destination 192.168.10.64
I am trying to grep multiple numbers from file, grep does have the -f option for that.
Code: grep -f <`seq 500 520` /etc/passwd I know this could be done with
Code: for i in `seq 500 520`; do grep "$i" /etc/passwd; done But my question is fare more behind this example. It is possible to redirect one command output which will be treat as a content of file for another command ?
I'm using Apache 2 on a Linux server and I was wondering if it was possible to redirect certain IP ranges to another page. I know it's possible to block an IP, but is there a way to block all IP's and only allow a certain IP range to connect, such as 5.87.xxx.xxx? I own this server, so if I need to use another OS, webserver, change configuration files, etc., that's fine.
I want to give a 404 error when the index.html file is requested, i already know how to do this in php, but i cant seem to locate any information about how to do it in htaccess. I thought about just redirecting index.html to a page that dose not exist, but i would like to do it correctly from the start.
I know that I can use the Redirect directive in apache to redirect users to another domain with "Redirect permanent / http://www.newdomain.tld", but when I use that line the entire URL is preserved.
For example, if a user tries to access [url] they will be redirected to [url]. Is it possible to redirect all requests to the root of the new domain [url]?
I have httpd server installed and I need to do redirect all the requests from clients thats start with a http://abc.*.* on to [url]. I know this has to be done with Rewrite conditions but Im at a loss coming up with the right condition. this site doesnt have any virtual hosts configured. Currenlty I only can access the apache test page.
I have an Apache 2.2.3 server and I am trying to get it it to redirect from http://mydomain.com/ to [url].
I have tried the following
Redirect / [url]
and
RewriteEngine on RewriteRule / [url]
The problem is i have many other contexts.
context1 context2 context3
So if you go to [url] you get re-directed to context1. Which is not what I want. Basically I am asking how can I set the default context on the server to context1 if you do not type it?
The issue is that my CentOS workstation is in a vlan from where the Intranet's DNS servers are unreachable. For browsing the web there is an ISA proxy server, which I presume resolves DNS for my firefox. However, wget, host, ping and aria2c fail to get any sort of DNS resolution since they're being run from command line.I have exported HTTP_PROXY value, which provides me internet access on console, but,only when I connect using IP address. It fails on name resolution.
My question is:May I redirect the DNS queries to my home PC which would be running a DNS server on a non standard port?I was thinking of putting nameserver 127.0.0.1 in /etc/resolv.conf and then put iptables rule to redirect 127.0.0.1:53 UDP to a.public.ip.address:3535 UDP..I don't know if I am shooting blanks or what, I am not very much aware of this kind of setup.My main need is to provide DNS resolution to console apps.I want to utilize my company's idle bandwidth for bulk downloads, so, using proxy, SSH tunneling through my Home PC is out of question.
I want to view directory content in apache server, for that i configure apache server, but i don't know how to enable autoindxing module, only apache test page is opening when i open my web site.
I'm trying to make a redirect rule on my .htaccess but it's not working as planned.
Quote:
The first rule works fine, but on the second rule i do have a problem.
When I type http://domain.com/?tempskin=_rss2 the redirect does not work, but if I change the ? to any other character or even group of characters, the redirect works fine. example:
[url] will be redirected to [url]
But i do need to redirect the ?tempskin=_rss2. I already tried some variations on the redirect rule without any success.
quesiton is how I can redirect http://www.thispage.com to http://my.page.com and still retail displaying http://www.thispage.com.The issue is if I point in httpd.conf to directory where my.page.com it doesnt work because it knows it address.
I need to redirect through a .htaccess file in my root folder. The redirect needs to be done from http://www.department.univeristy.edu/reuir to a different server [url]. I am having trouble in determining the pattern that is required for it to take effect.
I have a website example.com, serving pages on port 80. I want the url example.com/redmine to be rewritten to port 3000, where my redmine server is running, without actually changing the URL. So the user typing in example.com/redmine/test would serve up example.com:3000/test, without the user actually connecting through the port. I know this can work through CPanel, but I don't know exactly how it was implemented. I'm looked at how mod_proxy, mod_proxy_html, and mod_rewrite,
I'm trying to workaround a limitation in a server application. The limitation is that I can only connect to a LOCAL mysql database. I am trying to fool the server in to using a remote mysql database. I was hoping to do this by simply forwarding 3306 to another server on the same subnet.To that end I've set up iptables rules to forward all connections to port 3306 to a non-standard mysql port on a remote server. This works, except that I need to deal with the loopback interface in a special way and I'm stuck.
I'd love a hint or two on the following problem. I've set up iptables rules to forward all connections to port 3306 to a non-standard mysql port on a remote server. This works, except that I need to deal with the loopback interface in a special way and I'm stuck.
Code: iptables -t nat -A PREROUTING -p tcp --dport 3306 -j DNAT --to 128.XXX.XXX.XXX:3197 iptables -A FORWARD -p tcp -d 128.XXX.XXX.XXX --dport 3197 -j ACCEPT iptables -t nat -A POSTROUTING -j MASQUERADE Since locally-generated packets will never hit the PREROUTING rule, you'll need to setup a near identical rule using OUTPUT to make it work. Here is what I've tried:
I need to write a shell script which can ready content of the folder and place files on remote FTP server. I need to make sure that a file that is already placed on remote FTP server is not attempted second time. The file names will be something like Records-2011-05-09. The files will be generated by MySQL every hour.
I've installed Debian 6.0.7 with apache, php, mysql and phpmyadmin. We have a server with active directory and ldap where all the Windowsclients log on.
I want to view the username of the users visiting the Debianserver with $_SERVER["REMOTE_USER"] so I can give them personalized settings.
Tried installing the NTLM module from sourceforge but that didn't work, winbind also didn't work ...
I'm Rebuilding all the servers in the company I work for. I read anything I found about best practices in virtualizing, but I didn't find anything about virtualizing Apache. As MySQl is not considered to be virtualized as a best practice but to be on a separate machine - my question is "Do I virtualize an Apache server or put it on another real machine?". And also I'm going to put the server on Ubuntu!
I cannot remote desktop to the Debian machine from anywhere,hether within the same network, or on a different network elsewhere. Also, the personal wiki I set up on it to be viewed via a normal web browser cannot be accessed, either. Both time out when attempting to connect to them. I can still ping the Debian machine when on the same network, though.
This started some time ago when we had a failure occur on our main server.had to powercycle everything in order to restore things back to normal, the Debian machine included. Since that time, this problem started to occur. This is a major thorn in my side in attempting to prepare for our website to move,I've been unable to figure out how to fix it.Originally, I thought it would be something in between the Debian machine and anything else, which would mean something like our firewall box or our hardware switch was the problem. But the tech support people who maintain those for us confirm that there is nothing wrong with them, so now I'm not certain anymore.