Server :: Apache2 Running On SLES 11 Mod_rewrite?

Jun 3, 2010

I am running Apache2 on Novell SLES 11. I am using Virtual Hosting for two sites. One site only has a single domain whereas the other site has two domains registered. surrounding my one virtual host with the two domains. I want anyone that point to [URL] gets redirected to [URL]. I am trying to do this for trending but not 100% on how to go about doing this. I've read about mod_rewrite but most of the information I've read about is about a single site running on Apache and not much around Virtual Hosting within Apache. I am currently using Server Alias within my vhost.conf file which allows either [URL] or [URL] to see the site but I really want to redirect [URL] to [URL].

View 12 Replies


Ubuntu :: Apache2 Mod_Rewrite - Passing The Artist=$1 To The Server GET Vars

Sep 9, 2010

I've given a bit of support using Mod_rewrite to use magical urls to redirect to scripts, but when I migrated to Ubuntu's Apache2... I'm lost. I basically want to rewrite like this:

Code: RewriteRule ^artist/(.+)/$ artist.php?artname=$1 But I noticed that it wasn't passing the artist=$1 to the server GET vars. Then I noticed that if I changed the name of the file in both the rule and the file system to artists.php, typing artist/blah/ no longer was found. So then I realized that if I removed the rewrite rule artist/hello/ would still resolve to artist.php without any parameters my htaccess is like so:


View 1 Replies View Related

Ubuntu :: Running Apache2 Server As A Different User?

May 4, 2010

I'm a web developer and I make plug-ins for various shopping cart softwares on demand. because of this I'm constantly installing carts and then immediately updating them/modifying them. The problem I'm having is that I'm having to update the permissions manually all the time (every time I copy a new cart into the /var/www folder). Instead of doing this I'd like apache2 to run under my user, so I don't ever have to update the permissions again. How do I do this?

View 1 Replies View Related

Server :: Mod_rewrite Htaccess Not Working?

Nov 25, 2010

I want to use rewite module to change my site url from site/index.php to site/cat/ for example I have created .htaccess file in the directory where the file is and add to it:


RewriteEngine on
Rwerite ^cat$ /site/index.php

Here site is not my site, it just in example. I have rewrite.load in the loading list of modules and I can see it loads in phpinfo(). AllowOverride is set to All for the current site, but no redirect is made on site/cat

View 2 Replies View Related

Server :: Mod_rewrite .php And _ To / In Root Directory Only

Jan 22, 2010

I would like to use mod_rewrite to rewrite all instances of .php and _ in file names in the root directory

So far I have:

But this throws out error 500. Could someone correct my code?

View 1 Replies View Related

Server :: Mod_rewrite With Non-www To Www For All Deep Links?

Aug 16, 2011

I am still struggling to get non-www to www. At the moment I have following code to redirect from non-www to www. RewriteCond %{HTTP_HOST} !^$ [NC]
RewriteRule ^(.*)$$1 [R=301,L]It works totally fine for home page but not for other deep links, such as /city/Sydney.php, they are still going to non-www pages. What 's the best approach I could use to solve it

View 6 Replies View Related

SUSE :: Apache2 Reload Error Cannot Load /usr/lib64/apache2/ Into Server?

Nov 19, 2010

I have suse10 64 bit installed. I am setting up a svn server on it. After installation and adding the modules ,while reloading the apache2 it's throwing the error as: HTML Code: httpd2-prefork: Syntax error on line 113 of /etc/apache2/httpd.conf: Syntax error on line 31 of /etc/apache2/sysconfig.d/loadmodule.conf: Cannot load /usr/lib64/apache2/ into server: /usr/lib64/ undefined symbol: apr_memcache_add_server

View 9 Replies View Related

Debian :: Apache2 Start Error Starting Web Server: Apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost?

Dec 9, 2009

I am getting this error

Starting web server: apache2[Wed Dec 09 15:36:40 2009] [warn] NameVirtualHost XX.XX.XX.XXX:80 has no VirtualHosts(99)Cannot assign requested address: make_sock: could not bind to address
no listening sockets available, shutting down Unable to open logs failed!

also what is

View 1 Replies View Related

Server :: SLES 11.2 Samba Server With Win7 Clients?

Feb 26, 2010

I just installed SLES 11.2 X86_64 and have SMB Server started after adding 2 lines to smb.conf:1. NTMLv2 = Yes2. name resolve order = wins bcast host lmhostsThere are also 02 new DWORD lines I add to Win7 clientsHKEY_LOCAL_MACHINESystemCurrentControlSetServicesLanManWorkstationParameters 1.DomainCompatibilityMode = 12. DNSNameResolutionRequired = 0Of course a few number of modifications I made from Yast to enable SMB Server and Client, and bcast as well. Now I am able to join my Linux Domain without error at first reboot from win7, but it seems spending a long time about 30 secs for auth. even I test on a very fast network system, all with core quad 3GHZ CPU and 4GB DDR2I would like to mention here that before I made the above changes I did a lot of different modifications onto my win7 clients (I found many suggestions online), and all seems mess up and never work; Then I had to reinstall win7 from scratch and just add 02 lines as above, but it works.

View 3 Replies View Related

General :: SLES 9 Unable To Connect To X Server As Root Su?

Feb 18, 2011

Unable to run programs as su - (root) from command line. example: kfind or yast2error:cannot connect to X ServerAfter I exit as root, I am able to excute both commands successfully.I will not work as su -. Operating System: SLES 9 (using KDE).

View 2 Replies View Related

Server :: Disk Not Coming Up In VMWare Instance In SLES 10?

Mar 24, 2011

It seems that every time there is vmware client update a couple of my Linux servers always reboot and get stuck at booting up because linux can not start a drive. I end up having to boot off the server did, run install and then run a auto repair to get it to boot up. I tried narrowing the repair to just the file systems but that did not seem to fix it, it has to be a autorepair. So I am thinking that with the vmware client there must be some virtualized hardware address that has changed with the updated client but I am not sure how to check what it is when I get dumped out to what looks like run-level 3 command prompt

View 1 Replies View Related

General :: SuSE Linux Enterprise Server (SLES) Clone Available?

Jul 19, 2010

if there is available SLES clone out there. Like Red Hat Enterprise Linux = CentOS?

View 1 Replies View Related

Ubuntu Servers :: Apache2 Running But Can't View

Mar 14, 2010

I have had a LAMP setup on my computer for a while without any trouble but I have suddenly become unable to access it through either localhost or my IP address. I have tried removing and reinstalling the packages but it still doesn't work and the /var/log/apache2/error.log does not give me any errors.

Here is my apache2.conf


View 5 Replies View Related

Ubuntu Security :: Multiple Unwanted Apache2 Processes Running?

Mar 3, 2011

my computer is often very slow, to the point of stalling. I tty'd in and when I ran ps -ef I noticed about 10 /usr/sbin/apache2 -k start I dont even want 1 apache running. Any suggestions why these are running, or how to stop it? Well, I can stop it with a sudo killall, but how can I make sure it doesnt happen again?

View 5 Replies View Related

Server :: Apache2: Could Not Reliably Determine The Server's Fully Qualified Domain Name

Oct 24, 2010

Using Debian Lenny I'm getting the following message in my mail: /etc/cron.daily/logrotate:


apache2: Could not reliably determine the server's fully qualified domain name, using for ServerName

View 1 Replies View Related

Ubuntu Servers :: Why The Mod_rewrite Won't Load

Apr 17, 2011

Trying to track down reasons why mod_rewrite won't load, I found this site; hopefully, this will reduce the idiocy of this question.

Based on it and other sources:


graton# locate


View 2 Replies View Related

Programming :: Mod_rewrite Remove Sub-directories From URL?

Apr 25, 2011

I have tried this a million ways, got it to work once but it didn't work sitewide for some reason. I have a url: [URL] and I want it to be found by going to: [URL] I am using this


RewriteCond %{REQUEST_URI} ^/agents/tp/
RewriteRule ^([^/]+)/?$ agents/tp/$1/index.php [L]

and have also tried something as basic as


RewriteCond %{REQUEST_URI} ^/agents/tp/
RewriteRule ^(.*)$ agents/tp/$1/index.php [L]

I keep getting "The requested URL /JoeAgent/ was not found on this server." why it's not working?

View 4 Replies View Related

Ubuntu Servers :: Mod_rewrite Breaks PHP Post

Aug 29, 2010

My .htaccess file looks like this:

Options -indexes
RewriteEngine on
RewriteBase /


View 3 Replies View Related

Ubuntu Servers :: Apache Mod_rewrite Not Working?

Jun 27, 2011

I have mod_rewrite and mod_proxy loaded properly for the apache2 package in 11.04. I added the following to the bottom of my apache2.conf:

RewriteEngine: On
RewriteRule: ^/$ /test [L]

The server restarts fine, but / is not getting rewritten in the slightest. And when I added the RewriteLog directive, the log file had absolutely nothing in it.

View 3 Replies View Related

OpenSUSE Network :: Make Apache Mod_rewrite Work?

Jun 1, 2010

I want to enable Pretty URLs in Concrete5 and Joomla CMSs. So far I have- enabled pretty urls in the CMS- created .htaccess files (as they showed)- changed AllowOverride None to All in /etc/Apache2/httpd.conf <directory>- restarted ApacheBut the pretty urls still don't work, When I click any link on either site it gives me a page not found error. If I use the "non-pretty" URLs, all the links work. So I guess Apache either doesn't read the httpd config file or it doesn't read the .htaccess files or something else. Has anyone got this working? What else did you do?

View 9 Replies View Related

Ubuntu :: Getting CGI To Work In Apache2 Server

May 12, 2010

I'm running 10.04 with Apache2/PHP5.x I wanted to test some basic cgi scripts, but my browser is displaying the code (#!...) If I run the scripts on the console, they work fine so CGI is not the problem, it's apache. To install the CGI module I ran sudo apt-get install libapache2-mod-perl2 with no problems. By the way, I installed Apache through apt-get instead of doing it manually, but it seems that the installation divides the conf file in different parts, so the regular apache2.conf has this:

# Include module configuration:
Include /etc/apache2/mods-enabled/*.load
Include /etc/apache2/mods-enabled/*.conf
# Include all the user configurations:
Include /etc/apache2/httpd.conf
# Include ports listing
Include /etc/apache2/ports.conf

I can't figure out what I need to do to get CGI working on my server.

View 9 Replies View Related

Server :: Apache2 Mod_proxy Failing With Ssl

May 14, 2010

I seem to be having a problem with mod_proxy and https websites. A simple connection to port 80 works fine but all calls to 443 fail.

I had a look at my firewall but can't see anything that would block port 443, although I get no tcpdump traffic on that port on the deb01 client when I try and connect to it. I disabled the firewall but still no luck.

My configuration consists of 3 VMs (KVM) each running a different website.

I get the following error when connecting to ssl deb01

Code: An error occurred during a connection to

SSL received a record that exceeded the maximum permissible length.

(Error code: ssl_error_rx_record_too_long)

The following is what can be found on the host


View 1 Replies View Related

Server :: Apache2-mpm-itk Will Not Successfully Restart

Jun 15, 2010

I am having some problems after installing apache2-mpm-itk on my Debian 5.4 server. From my understanding apache2-mpm-itk will run child processes as root until a http request is received. It then suid's to the username in the VirtualHost directive. This is all working fine, as I can see a few apache processes started by a specific user.

However, the problem is when I try to restart apache. It will kill all the processes running by root but wont kill any of the processes that have been suid'ed to another username.

When i attempt to restart I get this error:

charged:/etc/apache2# /etc/init.d/apache2 restart
Restarting web server: apache2 ... waiting (98)Address already in use: make_sock: could not bind to address [::]:80
(98)Address already in use: make_sock: could not bind to address


If I do a "ps aux | grep apache" before and after I see all the root processes killed, but processes running as specified users from VritualHost directive remaining.

Now I am not an extreme linux power user, but I know a bit.

View 1 Replies View Related

Server :: Embed Grails 1.2.2 In Apache2?

Apr 30, 2010

I downloaded grails [URL]... and installed it. Created a sample application hello world. It was running successfully. In browser [URL].. I was able to see grails running. Now comes the problem. To be able to always start the grails application running after boot I wrote a script in /etc/init.d/software_grails its contents are


I have to open command prompt and go to /root/helloworld and then execute grails run-app. you dont have to write the name of application to run it. logging of boot messages is enabled /etc/default/bootlogd BOOTLOGD_ENABLE=Yes. then I opened /var/log/boot.


But it does not work. If I am not wrong then above method will work ONLY WHEN some one Logs in not on boot time. Is there a way where I can embed grails in apache2 they [URL]... have not mentioned any thing about apache2 to deploy my applications.

View 2 Replies View Related

Server :: Optimizing Apache2 Load?

Jul 23, 2011

I would like to ask how can I optimize apache2 load on my dedicated server. I am hosting Facebook applications on it, but most users will get a Timed Out message when they try to access it. I was tinkering with MaxClients directive in apache2 config, and it got better, but still it's not best. Programmers are trying their best to optimize the applications at their side, but I am afraid this is an server issue.

View 2 Replies View Related

Server :: Perl Cgi Configuration Under Apache2

Sep 14, 2010

I want to learn perl CGI. I tried to configure it on apache server. But when I was searching about it in the net, I faced some difficulties. Each and every post has been leaded me in different way. I am confused now. I have done this,

1. Installed this libapache2-mod-perl2 module

2. Then I checked the /etc/apache2/mods-available/ using ls command for checking the module availability.Here I mentioned the output of ls command.


View 2 Replies View Related

Server :: PHPAdmin Crackers And Apache2?

May 24, 2011

I have lots of bots searching for broken PHPAdmin URL's showing up in my apache2 logs. (Guess why I don't run PHPAdmin)

View 1 Replies View Related

Server :: Redirection With Different Folders Over Apache2

Nov 6, 2010

I have a problem about redirection over Apache2 over Debian Lenny. We have build a LAMP, and our programmer make a software with these features:

When you put on your browser (i.e.) [URL], you access to the program in /var/www/vhosts/hugohome/inside. And when you put [URL] you access to the program in /var/www/vhosts/hugohome/outside. Today, if you just put [URL] our Apache answers 403 (forbidden), because we had blocked folder access. (You know....isn't the right way). Our Apache's Document Root is in /var/www/vhosts/hugohome.

Our goal is to change definitely [URL] to access -> /var/www/vhosts/hugohome/inside. This is our main intention. Also, we can continue with [URL] pointing to /var/www/vhosts/hugohome/outside. I thought, hmm easy!: I can change the DocumentRoot to /var/www/vhosts/hugohome/inside and try with an Alias to outside. But the problem is that the programmer has taken the software reference with /var/www/vhosts/hugohome and when I tried to change the Document Root the programs didn't work fine (loops, error 404, etc).

How can I do?. I have tried with Apache with many manners, but I just have a relative success with: "RedirectMatch ^/$ [URL]". It works, but the Browser shows the ugly [URL]. Our intention is just show [URL]. Unfortunately we can't work directly with the DNS servers, and I guess that I can resolve with (i.e.) Apache and Bind together.

View 3 Replies View Related

Server :: Shell Script Won't Run From Apache2

May 10, 2011

why apache2 won't run my shell script i made.So in detail this is what i want it to do. I have a apache2 web-server running on my mac and i found some shell commands that control itunes so i wrote a shell script that basically pause's itunes. Now i have put the shell script in the cgi executable folder. and the link for the webpage is but when i goto the page in my browser it just keeps loading. I have run other scripts and they work and i don't think you need root access.

View 7 Replies View Related

Server :: Squid For Lan Filter And Apache2

Nov 22, 2010

Im currently serving a web in apache2; no problems I recently set up squid to filter internet for my LAN users.

***i dont want squid to accelerate WEB requests in my apache2.

So the problem is that SQUID blocks my 192.168.1. LAN denied attemps, so far, its ok BUT IT ALSO BLOCKS ANY OF THE INTERNET USERS TRYING TO REACH MY HOSTED WEB.

Can i have both servers in the same box without interferring each other?

View 6 Replies View Related

Copyrights 2005-15, All rights reserved