Ubuntu Servers :: Apache RewriteRule Not Checking Cookie Value?

Aug 8, 2011

I'm setting a cookie value using RewriteRule statements in .htaccess for checking if my site should not redirect from the main desktop site to the mobile site (when accessed via iphone browser). The problem occurs when the first RewriteRule sets "mobile=desktop" in the cookie (from detecting "?desktop=true" in the querystring), the third RewriteRule fails to detect the new cookie value and redirect. If I reload the page again (without any querystring for "?desktop=true"), then the third RewriteRule redirects successfully.

Can anyone tell me why the third RewriteRule fails to detect the cookie value straight after it is set in the first rule? How can I fix this to work properly?

[Code]...

View 4 Replies


ADVERTISEMENT

Ubuntu Servers :: RewriteRule Works On .htaccess - But Not On Httpd.conf

Sep 29, 2010

We are trying to migrate from a centos server to ubuntu server, but we have some problems with an application called Topincs [url].

The installation is quite simple and I did it several time (but with ubuntu it's the first time).

Probably there are some parameters to set that I don't know, but even if the installation works fine and I can see the home page, the application doesn't work because RewriteRules aren't applied.

First I tried to ensure that mod_rewrite works fine and I found a weird situation: rewriterules work if they are in .htaccess but don't work if they are directly in http.conf.

View 4 Replies View Related

Fedora :: Cookie Editor / Adder / Remover - Order To Change A Particular Browser's Cookie Values?

Jan 21, 2011

I'm looking for a program that will add cookies to my web browser (firefox or chrome, preferably). The application would ask me for the Cookie's:Name

Content
Domain
Path
Send For (type of connection)
Expiration Date

If no one knows of an application that does this, does anyone know what files i could manually edit in order to change a particular browser's cookie values?

View 4 Replies View Related

Server :: Checking The Apache Config?

Jul 16, 2010

I'm not all fluent in apache, so bare with me. I inherited this environment months ago, and I am still learning the strangeness of things in it.Here are two of my config files on all my web servers:

/etc/apache2/mods-enabled/cache.conf:
<IfModule mod_cache.c>
<IfModule mod_disk_cache.c>
CacheRoot /var/cache/apache2/mod_disk_cache/

[code]....

Correct me if I'm wrong, but don't these files configure the same settings, and don't they conflict? And if the conflict, which file gets the final say? And if one file overrides the other, can I just remove the one that loses?

View 3 Replies View Related

General :: .htaccess RewriteRule Map URL To Another

Apr 18, 2010

I've developed a web program and let say the main url is [URL]

I will be distributing different URLs for different customers and each customer will have their down database. Let say the URLs will be:

[URL]

because i be using single instance for my program, both this URLs will be pointing to the base code at http://domain.com. depending on whether is customer1 or customer2, the program configuration will extract from the respective database.

my question is, how do i use mod_rewrite to map the different urls to the main url with transparency. meaning, although each customer will see domain.com/customer1, this is actually pointing to the main base code at domain.com which has a config file to pick out the respective database.

I've managed to do it with alias in httpd.conf. e.g:

alias /user1 /var/www/html/myproject
alias /user2 /var/www/html/myproject

however, if i were to do this, i would have to restart apache every time i've got a new user. so i've decided to use .htaccess instead but realised that alias is not availble for it.

I've tried with rewriterule but with no success.

View 1 Replies View Related

Ubuntu Servers :: Checking If Users Exist?

Jun 28, 2011

Not sure if this is the right place fo this but....I'm just learning to write bash scripts. I'm experimenting on a ubuntu server 11.04 virtual machine.As part of the script I want to automate user creation.Is there a way to check if a user already exists in a script. so i can do something like

Code:
if userexists; then
do this
else
do this instead
fi

View 6 Replies View Related

General :: Checking The Disk Usage Of Different Servers Using Df -h Command?

Jan 7, 2010

how to Check the disk usage of different linux servers using df -h linux command. My host server is 66.50.100.1, I can check its disk usage by using df -h command. I got my disk usage. Now using my host server Im going to check the server 66.50.100.3 disk usage. Is its possible to check the disk usage of 66.50.100.3 using my host server?

View 4 Replies View Related

Ubuntu :: Checking Disk Mean Checking All Partitions On Hd?

May 10, 2010

Sometimes at startup I get this message "Checking disk 1 of 1". Does that mean it's checking all partitions on the hd? After a bad shutdown there is no prompt for fsck to run and the system just boots up. In fstab I have both options set to "1" for the partition Ubuntu is on, all others set to "0". Any ideas on both?

View 3 Replies View Related

Ubuntu Servers :: Creating Virtual Apache Servers?

May 3, 2010

I have Webmin installed on an Ubuntu server. I currently have a successful apache server running on port 80, however I want to create a virtual host on port 81. When I try I go to servers->Apache Webserver-> Create Virtual Host I change the port to 81 and the document root to /var/port81www then I click create. How ever when I goto 192.168.1.5:81 (local ip, I know I have to port forward but its not even working local) it does not work.

View 5 Replies View Related

Ubuntu :: Passing A Cookie To Firefox?

Aug 3, 2010

i would like to know whether it is possible to pass firefox a single cookie generated by some other program (in this case wget), doing it from the command line. my concrete use for this is to login to a site (connect.garmin.com) with wget, saving the cookie with --save-cookies --keep-session-cookies, pass this cookie to curl, do some uploads and then pass the cookie to firefox to open the page and have me logged in automatically (everything besides firefox is sorted out). google searches and the firefox man page suggest that firefox doesn't have this functionallity, but would it in that case be possible to link the cookie into firefox's normal cookie jar?

View 1 Replies View Related

Ubuntu :: Deleted Cookie / Able To Post This?

Feb 8, 2011

How am I able to post this?

View 2 Replies View Related

Ubuntu :: Cookie Saving In Chromium / Discard All?

Aug 9, 2010

I would like Chromium to discard all cookies at the end of the session except for specified domains. I thought I had it set up right, but it doesn't remember me on either ubuntuforums or facebook.

Does anyone know if I'm missing something or if this is a bug?
Screenshot of configure attached.

View 2 Replies View Related

Ubuntu :: Saving An Individual Cookie In Firefox?

Feb 16, 2011

Running Meerkat on Sony Vaio laptop, with Firefox as the browser of choice.The BBC News website has a "My Location" setting, and shares it automatically with the BBC Weather page for a local forecast.Is it possible to clear the Browsing History, yet save the one individual cookie that is used for this ?

View 2 Replies View Related

Ubuntu Multimedia :: Record A Stream With Http Cookie Authentication?

Apr 2, 2010

I can open the stream fine from Firefox and I have recorded streams using VLC, however this one uses cookies as authentication and VLC will not play it Apparently it's considered a security issue so cookie support has not been implemented for VLC.

View 2 Replies View Related

Ubuntu :: Wget Login Form Sets Cookie With Javascript/.

May 6, 2010

Is there any way to get wget to work with a login form that sets a cookie with a javascript function before submission? I know wget cannot call javascript functions but if there was a way to get it to set the cookie instead

Here is the form tag:
<form name="form" method="post" action="https://www.yourfavouritesite.com/login.asp" onsubmit="return SetCookie()">

[code]....

View 8 Replies View Related

Red Hat / Fedora :: Error - X11_request_forwarding: Bad Authentication Data: MIT-MAGIC-COOKIE-1

Dec 21, 2008

I am trying to ssh a remote system and redirect X with:

ssh -X remote.system.somewhere

(common user name in local/remote system so no need to set -l uname ) however I receive the following:

x11_request_forwarding: bad authentication data: MIT-MAGIC-COOKIE-1

View 5 Replies View Related

Ubuntu Servers :: Php 5 Won't Install Into Apache 2.2.15

Apr 23, 2010

I've run into a problem and I don't know if it's apache or php or the combination of both. I can compile apache 2.2.15 just fine, but whenever I try to compile php 5.3.2 into my server, the first two steps work just fine but when I get to the make install part it shows the libphp5.so and it just stays there and I have to cancel the install because it won't finish.

View 5 Replies View Related

Ubuntu Servers :: Apache Access Though VPN

Sep 1, 2010

just switched our company from windows server to linux and everything is going good except we have 4 vpn connections though out the country coming to our server. All giving the client machines ip addresses of 192.168.x.x based on where they are located 192.168.1.x for the main location 192.168.2.x for a second location etc, and IIS could see the clients ip instead of the wan ip and was setup to block all ips except 192.168.x.x ip's and this worked great.

So i set up apache the same way, to allow only 192.168 ip's but i guess it doesn't work that way in apache for connections coming though vpn? 2 out of our 4 VPN connections are not static IP's, so the 2 that are I just add that ip to the allow list and that worked.But i don't think we should HAVE to get static ips for the other 2, that's one of the benefits of using VPN, especially if our old windows server didnt need it.Is there any way for apache to see the clients ip address for access or is there something somewhere else that needs changed for this?

View 8 Replies View Related

Ubuntu Servers :: Apache Being Used As Proxy?

Oct 6, 2010

I've got some strange looking requests in my access_log which I don't much like the look of. Can someone take a look and let me know if 1) it's possible for other people to use my server as a proxy, and 2) how I can stop them.

Code:
85.190.0.3 - - [06/Oct/2010:14:32:55 +0100] "CONNECT 213.92.8.7:31204 HTTP/1.0" 200 1606
85.190.0.3 - - [06/Oct/2010:14:32:55 +0100] "CONNECT 213.92.8.7:31204 HTTP/1.0" 200 1606
85.190.0.3 - - [06/Oct/2010:14:32:55 +0100] "GET http://vlad-tepes.bofh.it/proxy.txt HTTP/1.0" 404 1955
85.190.0.3 - - [06/Oct/2010:14:32:55 +0100] "GET http://vlad-tepes.bofh.it/proxy.txt HTTP/1.0" 404 1955
85.190.0.3 - - [06/Oct/2010:14:32:55 +0100] "CONNECT 213.92.8.7:31204 HTTP/1.0" 200 1606

[Code]...

View 9 Replies View Related

Ubuntu Servers :: 8.04 - Upgrading Apache From 2.28 To 2.2.17

Nov 14, 2010

My Server is 8.04 (hardy) and Apache is 2.2.8. I have been receiving emails from Apache each time a new stable release is available, most of which say you should install them due to security issues. The current stable release of apache being offered is 2.2.17

Q1) Do you recommend I upgrade from Apache 2.2.8 to 2.2.17?
Q2) Does this come automatically with my regular updates via Update Manager once the Ubuntu community thinks its stable enough (it appears that it doesn't)?
Q3) What is the best way to install the update?
Q4) Any concerns about installing it into a live environment? I don't have a development platform to try it in first.

View 3 Replies View Related

Ubuntu Servers :: Setting Up Apache In 10.10?

Dec 7, 2010

When starting Apache I get this error in 10.10 (not in 9.10): [Fri Dec 03 21:14:22 2010] [error] (2)No such file or directory: could not open transfer log file /etc/apache2/${APACHE_LOG_DIR}/other_vhosts_access.log. Unable to open logs So where do I define APACHE_LOG_DIR ?

View 4 Replies View Related

Ubuntu Servers :: Running R From An Apache?

Dec 9, 2010

I'm looking to run some R scripts on a mysql database (engine =csv) from the apache webserver.

The goal is to record some statistics/numbers while someone is logged in, pass those numbers to r, run some statistics algorithms on the passed set of data and output an image file back to the logged-in user's html web page.

Doing this along with knowledge on how to call general r functions from within a php framework would be great.

View 1 Replies View Related

Ubuntu Servers :: Add ROR And PHP On Apache Web Server?

Mar 6, 2011

I would like to add ROR to my web server, but I would still like to keep php. I tried doing this a few days ago, but it made my PHP unusable so that it would ask me to download a file rather than displaying the php page. how to install ruby on rails without trashing my system again.

View 3 Replies View Related

Ubuntu Servers :: Bind DNS And Apache ?

May 10, 2011

I was wondering if anyone knows how to make a zone file for bind dns server that points "example.com" and all (by all i mean any) sub-domains to this 127.0.0.1 address. and i wanted to set up a virtual host in apache to use /var/www/eample/index.php for 'example.com' and all of its sub-domains.

View 1 Replies View Related

Ubuntu Servers :: Get Good Apache GUI?

May 12, 2011

Can anyone point me to a good apache GUI?

Ive read online about webmin, ebox etc but are there any others? I'm using gnome on my server and i did a search through the Ubuntu software Centre but nothing came up.

View 2 Replies View Related

Ubuntu Servers :: Apache Two Websites One IP

Jun 12, 2011

So here is my problem. I have websiteA.com and websiteB.com. I only have one public IP address. And websiteB needs to be constantly restarted, so both need to be on separate apache servers or instances.Virtual directories wont work cause I can only point websiteA to a directory /var/www/websiteA.Reverse proxy wont work cause I can only catch a sub directory.Proxy /websiteA/ URL...Does anyone know how I could get this to work in anyway.

View 4 Replies View Related

Ubuntu Servers :: Apache 2.2 - My Site Cant Be Seen On Lan

Jul 29, 2011

Im trying to just set up my web page so it can be seen on my local home Lan (then Ill try to get it on the internet). I can see the site it on my pc but other network users cant.

They can ping my computer but cant telnet to it on port 6060 (thats the one is set the server up on)

What's wrong with my configuration its mostly the default with a few changes that I hoped would make the site work.

My ip 192.168.1.10

Here is the sites-available default file

Quote:

View 7 Replies View Related

Ubuntu Servers :: Apache Only Working With Port 80?

Jan 20, 2010

I have a virtual server setup on port 80 that works fine, however, if I change the port to, say, 8080 the browser then fails to connect.I'm using webmin to configure everything, all the other settings seem to work as I would expect.I get the error "Safari canī open the page http://192.168.0.12:8080 because Safari cant connect to the server 192.168.0.1." in safari, and i get something similar on the xubuntu machine in firefox connecting via localhost.It's almost as though theres a firewall in the way, but I think it's more likely to be some config problem.

View 2 Replies View Related

Ubuntu Servers :: Apache Use Server Name Instead Of IP Address

Feb 25, 2010

I've setup a Ubuntu 9.10 LAMP server to host a word press blog on an intranet. I've got everything working except the url for the site.The IP address of the server will take me to the site URL.../But I'd rather use the server's name instead of the IP address URL...When i try to go to URL... in Firefox or IE it give me a server not found page and changes the URL to URL...I also have Webmin installed on the server and I've been playing around with the Apache module and can't figure out how to set it so i can use the server name instead of the IP address to get to the site.

View 6 Replies View Related

Ubuntu Servers :: 8.04 - Apache Access Log Stopped

Mar 6, 2010

I am running an apache server thru webmin, on a 8.04 install. Attempting to install awstats I have realized that access.log stopped writing some months ago. Went back thru the error logs and found I had deleted the virtual server, and started a new one. Everything else works fine, it never even occurred to me that logging would not also be restarted. I would just like to get it going again, any clues???

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved