OpenSUSE :: Configure Apache To Redirect To The Home Page If A User Is Directed To A Broken Link?

Aug 29, 2011

Is there a way to configure Apache so that if a user tries to access a webpage that doesn't exist under mydomain.com, that it redirects that user to the index.php?

View 1 Replies


ADVERTISEMENT

Server :: Change Default Apache Webpage To User Home Page

Aug 9, 2010

I am now using CentOS5 as the server providing Apache services. I have managed to setup the web page under /home/user1/public_html, now I wish to change the default web page of our server to /home/user1/public_html. i tried to modify httpd.conf, in which i changed the "/var/www/" to the above user directory, but didnot work. Please kindly suggest.

View 9 Replies View Related

Server :: How To Redirect From One Page To Another Using Apache And Still Retain Original Url?

Apr 3, 2011

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.

View 4 Replies View Related

General :: Configure Apache To Redirect Request To Another Port ?

Aug 11, 2011

*Am trying to configure on machine ?MyServer.net? apache on port 8586. *Two applications run on same machine on different ports Jenkins on 8081 and Hudson on 8080.*Request coming to 8586 port should redirect to either 8080 or 8081 on one condition. *The request from client machine coming to MyServernet:8586 looks something like this ?MyServer.net/job/<JOBNAME>/build?token=TOKEN?.

Condition
If <JOBNAME> is ?naveen? apache should redirect to 8081.
If <JOBNAME> is not ?naveenn? apache should redirect to 8080.

[code]...

View 1 Replies View Related

Server :: Set Nagios To Apache Start / Home Page

Jan 19, 2011

Been a very long time since I have played with Linux.Now in a new position and have setup a Nagios server running on Centos 5,5 for a NMS.How do I set apache that when I visit: whatever.org it starts Nagios.. Currently I have to go to whatever.org/nagios.

View 9 Replies View Related

OpenSUSE Network :: Link Firefox Redirect To Iwsearch.net (Infoweb)

Feb 19, 2011

I am a Linux Distro user from 2006. Last year till i am using openSUSE 11.3. Recently i get a problem, When i enter a link My Firefox redirect to iwsearch.net (Infoweb). I install it few days ago. I this its my Browser (Firefox) problem! But I install Opera, Chrome no change same problem. This is very annoying. Too much pain for me. How to remove iwsearch.net.

Also another request to openSUSE Network Manager developers, Please add a options on Wired Connection. The options is Original MAC and Cloned MAC like Ubuntu 10.10 (Gnome), But i need it on KDE, because now i fall in love to KDE. So, i need (i think most of users need) MAC cloned systems, My ISP conection is MAC systems. Pain for change from Command mood I don't like to change from Konsol. We have two Wimax provider- banglalionwimax.com and qubee.com.bd , We are whole Linux user in this Bangladesh can't using USB modem, only Support Gigaset Modem. Its Indoor modem. But USB modem is portable and flexible. Please its hard request do something for USB modems.

View 9 Replies View Related

OpenSUSE :: Apache Redirect - Handlers ?

Nov 5, 2010

The previous version of one of my websites was static and so the URLs looked like this: [url]

A few months ago I re-did the site to be completely dynamic. There are no individual pages for product reviews, just one which pulls the right data from a database. So now, my URLs look like this: [url]

Some fellow ex-googler who specialize in SEO told me that the previous URL scheme was better for search engines because it had the product name. Of course, I have set up redirects from the old naming scheme to the new one but what I would like to do is have 'review.php' handle the request for 'review_XXXX_YYYY.php' without actually doing a redirect... and do this for past and future products. I don't want to have to actually create all these 'review_XXXX_YYYY.php', there would be hundreds, just make it seem like they exist to visitors.

View 7 Replies View Related

Ubuntu :: Documents Directory Now Link File Linking To /home/user/Document And Inaccessible

Nov 11, 2010

I just realized that the "Documents" folder in my home directory has changed to a file which is a link to the /home/user/Documents and it is unaccessible. It does not (no longer) show in the "file browser" when I try to click it from "places" it says:

Error: Could not open location 'file:///home/user/Documents' No application is registered as handling this file When I list from the terminal (i.e. %ls -ltr ) it list the file (which was suppose to be the directory) as

lrwxrwxrwx 1 user user 24 2010-11-01 18:20 Documents -> /home/user/Documents

NB. user in this case is my user name on the system, I am just using user for this forum. how to retrieve the information from the folder and remove the linked file to remain with the original folder

View 5 Replies View Related

Server :: How To Get Apache Running In User Home Directory

Dec 10, 2010

I'm trying to get Apache to run in a user's home directory. I changed the conf file so that Apache runs under the user and group "kiosk" and changed the DocumentRoot and Directory from the default to "/home/kiosk". Then I set Apache to start at boot (chkconfig --level 235 httpd on) and rebooted. When I checked, httpd is running as kiosk like it should (ps aux | grep httpd). However, when I try wget localhost, I get a 403 response back. If as root I call "httpd -k stop" and then "httpd -k start", then everything works exactly as it should (curiously, if I try using "-k restart", it still doesn't work). After this, httpd still shows as running as kiosk and if I check before calling start, it shows no httpd processes running as expected.

This only happens when I use httpd to stop and then start the web server. If I try to restart using apachectl I still get a 403 error. As an interesting aside, after I've used httpd, if I try using "apachectl restart" I get a "(13)Permission denied: Error retrieving pid file run/httpd.pid" error. This is all on a freshly installed CentOS 5.5 server. Why I'm seeing this very different behaviour from what I thought were just equivalent ways of starting Apache? And then what I could do to get it to start up and run properly on boot? One last item to mention is this isn't a permissions problem. I set the permissions to 777 to both the home and kiosk directories (and 666 to the web files) just to be sure that's not the problem.

View 4 Replies View Related

OpenSUSE Install :: Upgrade 11.2 From 11.1 - Ramdisk Broken Link

Dec 4, 2009

I have updated using zypper from 11.1 to 11.2. Does this process update the boot/menu.lst file with an entry for the new kernel? Didn't for me.

Any rate, that's not really the problem. I have created a new entry in menu.lst to load the new kernel but I don't have a ramdisk image - all I have is a broken link initrd -> initrd-2.6.31.5-0.1-default

Where do I get the image from?

View 2 Replies View Related

Ubuntu Servers :: Apache User_dir Mod And Home Directories - Automatically Set When User Account Created?

May 28, 2010

I want to automaticly set the group ownership of user home directories to a group that the user is not part of. This is so that Apache can be part of this group and can access user public HTML directory, but other users are not able to access in any way the files in the users home directory. What I have seen that works manually is adding the user and then changing the group for the home directory. But I want to automatically set this when the user account is created. WHat I see happening is that when /etc/skel is copied, it automatically sets the group and ownership of everything to the users default group and ownership. I've seen some suggestions on setting permissions, but these don't seem to work because it seems that users are able to cd into a directory and not list it, but if they know the file name they can access the file.

View 1 Replies View Related

Ubuntu Networking :: Mount To Vista Needed For Apache - Symbolic Link Not Allowed Or Link Target Not Accessible

Apr 26, 2010

I have a problem where I'm using Ubuntu linux to mount a Windows Vista machine's USB drive and access it on the web using Apache. I did have the USB drive plugged into the Linux machine directly and that was working via the web. FollowSymLinks is on in httpd.conf

[Code]....

The mount works and I can see the files (see above) from my regular linux user account. If I make a test file in /mnt and soft link to that, I can see it on the web. So it's just the mount to the vista machine that seems to be a problem. It's supposed to be a simple read-only mount and the apache login should (I think) be able to see the same generic root access permissions.

log from apache: [Mon Apr 26 20:39:42 2010] [error] [client 99.99.99.99] Symbolic link not allowed or link target not accessible: /home/user1/pub_html/Music, referer: https://xx.xx.xx/~user1/music.html

The credentials have a login and password that matches a special read-only account on Vista. I can see the files on the system from Linux, but not via the web. As mentioned above, a different link to the same /mnt area works fine via the web. I've tried several different mount options with no success.

View 3 Replies View Related

OpenSUSE :: Firefox Not Showing Home Page

Sep 19, 2010

I just upgraded my home machine to 11.2 and am running the regular Firefox 3.6.10 for openSUSE-11.2 (why can I still not cut and paste that infor from the dialog box, grr).

My home page is set to - file:///home/dhoworth/public_html/localstart.html

But when Firefox starts it shows instead a directory listing of - file:///home/dhoworth/

If I then press the home button, it shows my home page. If I start a new window from an existing one, it shows my home page.

why it isn't shown on startup?

View 2 Replies View Related

OpenSUSE Install :: Recreate A User Profile / Home Dir For An Existing User A/c?

Feb 16, 2010

what is the correct way/procedure to re-create a user home directory. For instance, on a Mac/Windows machine, i would just rename the existing user profile [home dir], and then just log back in as the user - job done. On OpenSuse/Linux, it seems it does not work that way..?! When i try to rename my home folder to say me.old via root, and log back in as me, i get all kinds of errors. Opensuse does create a new home dir, but it appears not properly.

View 9 Replies View Related

General :: Cannot Redirect URL To Another URL When The Link Is Down With Squid

Jun 10, 2010

i have installed squid 2.6 on my centos. i have writen a shell script to ping a network and write to a file. write '1' if network up and '0' if network down. After that,a perl script will read the file and do the redirection.Perl will redirect to a fix URL [URL] if the network down and do nothing when it up. i have put my perl script in squid.conf at url_rewrite_program /my_file_path.

below is my shell script for pinging:

Quote:

#!/bin/bash
while [ 1 ]
do
HOST=143.148.137.134

[code]....

My problem is client browser are not redirect to www.google.com even the network is down. It should go to the fix URL when the user click any URL in network down situation.it just appear cannot resolve host.

View 1 Replies View Related

OpenSUSE Network :: Apache Virtual Hosts Broken After Deleting Log Files?

Feb 22, 2011

I run a dedicated opensuse 11.1 server with apache (2.2.10-2.9.1) installed. This box has been running for nearly 2 years hosting several low traffic websites. I must admit that I did not give lots of love/attention to the machine over that period. It ran rock solid. The different websites each have their own associated user account and are stored in their own /home/name/public_html/ folder. It was setup through Webmin. Each domain name is also linked to a unique IP (the box has multiple available IPs), however this is configured at my domain provider. All in all a very simple and straightforward setup that never let me down most of the past decade.

Recently the sites on the machine were no longer responding. This happens each other year or so since I write my logfiles to a separate partition. Was df -h and indeed, partition was full. Removed logfiles manually, and while I was at it I decided it was time to run an online update (yast2 / online update that is). Rebooted machine after yast telling me to do so. Sites are no longer working. Can no longer login to webmin. Only thing what works is the 'root' webpage (/srv/www/htdocs folder), which makes me rather clueless as the other sites are just not responding at all, not even a timeout or error message.While I know that deleting logfiles manually is quite stupid, I've done it fore and not really ended up in trouble.

Hence my questions: does this sound familiar to anyone and do you mind to give me a clue about where exactly I should start to look. It's been ages since I actually administrated apache, so I might overlook the obvious. Long story short: any tips are very welcome about what I should check first, what config files might have been changedith the update, etc ...

View 1 Replies View Related

OpenSUSE :: 11.4 64bit KDE 4.6.0 Configure Default Text Editor Broken?

Mar 16, 2011

I'm unable to set a default text editor since upgrading to 11.4. Configure Desktop > Default Applications > Text Editor. Only has one option - Embeded Advanced Text Editor It's something named Mousepad 2.16. I wish to use Kate or Gedit instead!

View 4 Replies View Related

Fedora :: Vlc Broken By Redirect

Jan 13, 2010

I seem to have lost vlc. It was working ok til I tried the following from [url].

"Like I told you before, files aren't the only places where you can redirect the standard output. You can redirect it to devices, too: $ cat sound.wav > /dev/audio

As you saw, in the above example the cat command concatenates a file named sound.wav and the results are sent to a device called /dev/audio. What's the fun here, then? /dev/audio is the audio device, and when you send there the contents of a sound file, that file is played. So if your sound is properly configured, the above command plays the file sound.wav!"

I thought that if I sent a music file to vlc in this way, vlc would play it. So I did cat song.mp3 > /usr/bin/vlc. At this point vlc stopped working. I looked in /usr/bin and found that vlc had been turned into a music file! So I erased it, and removed it via yum. Success. Then I reinstalled via yum; success. But the messages now are: from terminal:

[From gui: Could not launch 'VLC media player' Failed to execute child process "vlc" (No such file or directory).

View 2 Replies View Related

Programming :: Parse Final Domain From Redirect Link ?

Jun 2, 2011

I have a collection of redirect links I need to grab the final domain from (indicated after "->"):

[url]
[url]

I'm thinking PHP/cURL is the way to do it. I've searched the net but failed to find a solution that works for all redirection links.

View 2 Replies View Related

OpenSUSE :: Using Yast2 GUI Interface To Configure Apache

Nov 20, 2010

I'm using the yast2 gui interface to configure apache. I think its called yast2_http_server. I added one website with *:80 set as the virtualhost ID. When I go to add a second website with the same thing, it errors out with: The IP address is already configured on another virtual host: *:80/mydomain.com. I have another opensuse box with many websites in apache configured this way.

View 1 Replies View Related

OpenSUSE Network :: Configure A Webserver In Apache 11.3?

Mar 5, 2011

I am running 11.3 64bit. I need to set up a simple web server, and I was trying to follow this tutorial to do it HowTo: Configure a Linux Apache Web Server on Suse/openSUSE for SSI, Includes, CGI, Common Gateway Interface, AddHandler, ExecCGI, AllowOverride, htaccess, DocumentRoot The web server is running but this part could not be applied and I need to change the ownership. it seems the command lampserver does not exist.

[Code]...

View 8 Replies View Related

Programming :: Attempting To Record The Redirect Url Using Wget And Logging In In Seperate Page?

Feb 10, 2009

My friend has a website whereby once you have logged in on one page, you are redirected to another page, with a url similar to:

[URL]

the random string changes each time you log in, however the login page has a static url What i was attempting to do is run a script to get some data from the members page (after uve logged in) - however ive been having some trouble in how to do this, as the variable url with the random string will become invalid after a certain time, and i did not want to consantly change it.

While reading through some documentation i read that wget should be able to login to a form login website however ive had no luck, the command i was attempting to use was:

wget --user USERNAME -password PASSWORD [URL]

similarly i also tried

wget --post-data "username=USERNAME&password=PASSWORD" [URL]

and even both combined. However neither has worked as the html dl'd is simply the login page website. I cannot post a direct link to the website as it is private, however ive looked at the source coding and ive extracted (what i think) is the relevant bit, which is:

Code:

<form action="/cgi-bin/sblogin/login.cgi" method="post" name="login" id="login"><br /><br />
<div class="user_text"><span class="text3">USERNAME:</span></div><div class="user_box"><input type="text" class="text" name="uname"></div>

[code].....

View 1 Replies View Related

Red Hat :: Apache Redirect Url ?

Jul 29, 2009

http://test1.ch is the main page [url]is the sub page(alias) in another language(italian)

So that means every request on [url] should be redirected to [url]

I already tried: redirect permanent [url] but nothing happens

View 1 Replies View Related

Ubuntu :: Redirect Sound Output From User A To User B ?

Apr 30, 2011

I'm running a browser (google-chrome) as a different user.

To achieve this, I do the following:

Code:
$ sudo xhost +

Then run the command you want as the other user:

Code:
$ sudo -i -u <username> /opt/google/chrome/chrome

Then when I'm done browsing, I do:

Code:
$ sudo xhost -

[Code]....

Instead of doing pkill pulse, is there any way to redirect the sound output (Flash Player) from <browser user> to <current gnome user>, so I don't have to pkill the sound daemon of the current user ?

View 4 Replies View Related

Programming :: HTML Redirect With Form Being Submited OnLoad - Link Integrated With Flash

Feb 16, 2010

Got site hosted, up and running now trying to work out the website particulars.

Right here it goes, not sure if it is at all possible but any input would be much appreciated.

Here's the deal. Developing an easy straight forward online store integrated with EBSWorldpay . Not looking for any fancy stuff. What i would like to do is put a flash url link that would direct a user to a html file that contains a hidden form and it would submit it on load redirecting a user straight to EBSwordpay checkout. Simple HTML Redirect with submited form.

Check the link here it has the source code of the form that is required.: [url]

Trying to use Example 0.1 ( So instead of having a separate page with a "BUY" for the form to be submitted, I would like to get the form posted straight away which would in turn load the payment site. Would create a seperate html file for each item and have redirects on the main website linking to those onLoad submit forms.

View 1 Replies View Related

OpenSUSE Network :: Correctly Configure Apache / Subversion And Mod_dav In 11.2

Feb 17, 2010

I have a problem to correctly configure apache / subversion and mod_dav in openSUSE 11.2 I have setup a virtual host on my home server (because I need to access it from the Internet), that should be a subversion server. The subversion root directory is the

Code:
/srv/svn/repos
I plan to use a separate directory for each project.
So, the svn tree will be/srv/svn/repos/project1/....
/srv/svn/repos/project2/....
/srv/svn/repos/project3/..

Apache serves the web pages (actually the directories) but since the documentroot and the SVN root are the same, it cannot handle the SVN repositories correctly. So, I re-read the Setting up a Subversion server using Apache2 - openSUSE how-to and followed it's suggestion. (Use a Location outside the document root) Anyway, the problem is that I have a 404 error, which of course is normal, since there is no alias set for the /rep location I use.

[Code]...

View 1 Replies View Related

Server :: Apache Only Allow Certain IP's And Redirect Others

Aug 14, 2009

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.

View 2 Replies View Related

Server :: Redirect Of Apache ?

Jul 6, 2009

How can apache do this:

When access http://domain1/index.php , apache redirect to [url]?

But when access [url]?something, not redicect?

only use .htaccess.

View 8 Replies View Related

OpenSUSE Install :: Normal User Cannot Login - Screen Blinks - A Black Page Appears

Jun 27, 2010

I can't log into my normal user account anymore, though I can log in with root without any problem. When I enter my normal user name and password, the screen blinks, a black page appears and after a couple of seconds I get the login screen again. I deleted /tmp files but no changes. I tried to login using command mode. So I hit Ctrl-Alt-F1 and log into root in command mode, then ran init3, then switched user to my normal user and ran startx. It worked and I logged into my normal account, but I can not do this process every time. So, what is the problem? How can I solve this problem? I used to work with my normal user flawlessly. I installed a bunch of software and also copied some folders to my home directory, but I don't know whether these activities caused the problem or not. I'm using KDE4 under openSUSE 11.2.

View 9 Replies View Related

General :: Redirect Method In Apache

Apr 17, 2010

How to redirect one website to another website in apache.

For example: when i type www.example.com in my browser then it redirect to www.example.com/beta. so how i do in apache, i am using centos 5.

View 1 Replies View Related







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