Visit Our UNIX and Linux User Community


default url path


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers default url path
# 1  
Old 07-16-2001
default url path

flavor AIX

where oh where do I set the default url path? at one point and time the path was set to a specific dir, i.e. when I access http://server.com/page.html I am hitting a page saved off in dir1/dir2/dir3/page.html. but, how do I alter that default path?

I don't have a clue what web app is running on this box, although I have looked, I just don't know what I am looking for. Somewhere out there there has to be a config file that stores this default path.
# 2  
Old 07-16-2001
Unfortunately you are going to need to know what web server software is running, only for the reason that the config file will be software specific - if it's AIX it may well be websphere if they have chosen to run proprietary IBM web server software, however it may be another piece of software such as Netscape (iPlanet).

Either way this config file will contain what is called the document root for a web instance - this will specify which directory to use as the root directory to serve pages for that web instance.

In Netscape Enterprise software this is located in the obj.conf file, don't know about web sphere - you may want to try and grep for "document-root", use the -i option with the find command and you might be able to track the file down.

something like

find / -type f -exec grep -il "document-root" {} \;

The -l will list the file for you.

Hope this helps.

Regards.
alwayslearningunix
# 3  
Old 07-16-2001
If it is running apache, the config file will be named httpd.conf. To find it, execute this command, preferably as root
Code:
find / -name httpd.conf -print 2>/dev/null

Edit the document root and test. It's always a good idea to save off a copy of the file before you modify it.
# 4  
Old 07-17-2001
Is it AIX 4.3.3 ... It installed that some weeks ago and saw some processes httpdlite running ... the configuration file is under
/etc/IMNSearch/httpdlite/httpdlite.conf

But I wasn't able to configure that server like I wanted .. So I installed apache instead Smilie
# 5  
Old 07-17-2001
Thanks for all the help guys. I will search for the above files. I still don't know what web app I am using here. The box is AIX 4.2X and the "document-root" was set up when I started here. That default path was set up to a mounted CD-Rom that holds some Tech Libary info. So when accessing all but the main index.html your hitting info stored on the CD-Rom. After you toss in the fact that I don't see an obvious web app and the mounted CD-Rom access I am running around this box blind.

But there has to be some sort of web tool up and running to handle the url direction. I see some httpd4 processes running, but I don't get a new one per web page opened.

I asked the old timer I am working with about the web app on the box and he told me to look for the spider application . . . *eye roll* His sense of humor is, at times, a bit out there . . .
# 6  
Old 07-17-2001
Ahhh there is was . . . Apache. I found the httpd.conf, but it was a .cnf file and was saved deep in no man's land. Anyway I was hoping to alter the ServerRoot, but by doing this I would disable the path to the Tech Libary. . . I will have to live with my linked files and a few extra words in the urls of my pages.

Thanks again guys. Even though I wasn't able to get to where I wanted, I did learn a great deal!
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #357
Difficulty: Medium
BusyBox includes an AWK implementation written by Linus Torvalds.
True or False?

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Convert NAS URL to Physical Path & visa-versa

sometime the user gives me the Linux NAS path URL which is accessible usings windows explorer like below: This URL translates to the below physical path on Linux host Below is what I wish to achieve: 1. Detect if the path provided is NAS URL starting with "\" or a Physical Linux path... (7 Replies)
Discussion started by: mohtashims
7 Replies

2. UNIX for Advanced & Expert Users

Command to see the logical volume path, device mapper path and its corresponding dm device path

Currently I am using this laborious command lvdisplay | awk '/LV Path/ {p=$3} /LV Name/ {n=$3} /VG Name/ {v=$3} /Block device/ {d=$3; sub(".*:", "/dev/dm-", d); printf "%s\t%s\t%s\n", p, "/dev/mapper/"v"-"n, d}' Would like to know if there is any shorter method to get this mapping of... (2 Replies)
Discussion started by: royalibrahim
2 Replies

3. Shell Programming and Scripting

Reading URL using Mechanize and dump all the contents of the URL to a file

Hello, Am very new to perl , please help me here !! I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file. below is the script which i have written so far , #!/usr/bin/perl use LWP::UserAgent; use... (2 Replies)
Discussion started by: scott_cog
2 Replies

4. UNIX for Dummies Questions & Answers

Awk: print all URL addresses between iframe tags without repeating an already printed URL

Here is what I have so far: find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}' Here is an example content of a PHP or HTM(HTML) file: <iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies

5. Web Development

Regex to rewrite URL to another URL based on HTTP_HOST?

I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST The call goes out to http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena The ID in the middle is always random due to the cookie. I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies

6. Web Development

Apache mod_rewrite: from 'friendly' url to actual path

I'd like to translate a friendly url such as: http://www.xxxyyyzzz.com/page/12345678/ to: http://www.xxxyyyzzz.com/page/12/34/56/78/ Seems simple enough, but I cannot figure out how. Any one done this before? (2 Replies)
Discussion started by: markericksen
2 Replies

7. UNIX for Dummies Questions & Answers

ReDirecting a URL to another URL - Linux

Hello, I need to redirect an existing URL, how can i do that? There's a current web address to a GUI that I have to redirect to another webaddress. Does anyone know how to do this? This is on Unix boxes Linux. example: https://m45.testing.address.net/host.php make it so the... (3 Replies)
Discussion started by: SkySmart
3 Replies

8. Shell Programming and Scripting

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

9. UNIX for Advanced & Expert Users

url calling and parameter passing to url in script

Hi all, I need to write a unix script in which need to call a url. Then need to pass parameters to that url. please help. Regards, gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies

Featured Tech Videos