|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
2 quick fix apache config probs
1: i can't get a directory listing (if no index.html) if the url is fake-domain.com/pics, but if it has the trailing '/' (fake-domain.com/pics/) it works. how do u get it to show it w/o the '/'?
2: how do u set up a subdomain (something.myURL.com)? i messed with virtualhost but then my server didn't show up at all. thanks for any help |
|
#2
|
|||
|
|||
|
>> (1) i can't get a directory listing (if no index.html)
Start here -> http://httpd.apache.org/docs/mod/core.html#options and add Options Indexes within the <Directory> block for your docroot. Anyhow, more than likely, your pic directory is an Alias path (not a directory under your docroot physically). In most case, say the default icons directory, you would Alias /icons/ "/path/not/under/docroot/icons/" (note the trailing slashes). And <Directory "/path/not/under/docroot/icons"> Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all </Directory> Another way of doing is to create a symlink of pic directory from its original location to /path/to/your/docroot/pic, then add Options FollowSymLinks Indexes within <Directory /path/to/docroot> (2) You can't blindly create a subdomain without a proper DNS configuration. You can add an A record for subdomain.myurl.com or you can even setup wildcard A record for *.myurl.com. Don't use cname if at all possible (cname is known to be unreliable). |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > 2 quick fix apache config probs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|