LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 12-18-2010, 12:08 AM   #1
mpapet
Member
 
Registered: Nov 2003
Location: Los Angeles
Distribution: debian
Posts: 548

Rep: Reputation: 72
Apache2/Worpress rewriting url to avahi's .local


Hi,

I've got a home network that uses avahi's magic '.local' name service.

One computer is a server running Debian Testing/Apache2/Wordpress 3.0.x.

All the computers in the house have avahi-compatible service, so reaching the server is easy for computers.

I'd like to use my phone via the wireless lan to use the wordpress installation. The gotcha is, I can enter the ip address and get to the login page. The next page, the ip address is re-written to the avahi host name.

As an example,
1. I enter 192.168.11.110:100 and I land on the default page.
2. Click on a page of content.
3. URL is rewritten from the numeric address to the avahi, text address.
4. This is a 404 error on the phone. The laptops handle it just fine.

How do I stop apache2 from rewriting?

Last edited by mpapet; 12-18-2010 at 12:10 AM.
 
Old 12-18-2010, 02:54 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Usually the rewritting stuff is in a .htaccess file in docroot, or in the directory where wordpress is installed.
To stop apache rewritting, set "RewriteEngine off", or just comment out the rewritting stuff. Keep in mind that this can break things and wordperss could stop working.

Regards
 
  


Reply

Tags
apache, avahi



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
URL Rewriting in htaccess hatchnet Linux - General 7 07-05-2010 05:57 PM
URL rewriting/Centos lonster Linux - Newbie 1 09-28-2009 08:46 AM
URL rewriting for sub-domain scls19fr Linux - Server 6 10-05-2008 11:56 PM
URL Rewriting mrpraveen.p Linux - Newbie 1 06-03-2008 07:07 AM
URL Rewriting getmeontop Linux - Newbie 1 04-02-2008 02:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration