Apache Technologies 14 Manual de usuario Pagina 42

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 83
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 41
42 Chapter 3 Managing Websites
Step 2: Import your web content
Import your web content into the Spotlight MetaData store. The /Library/WebServer/
Documents folder is not normally monitored by the MetaData Import processes, so you
need to import the data manually, both initially and whenever you want any changes
to be reflected.
Its a good practice to create different folders to hold the content of your virtual hosts.
You need to manually import and update those as well.
You use the mdimport command-line too to import the data. Type the following
command in Terminal:
sudo /System/Library/Frameworks/CoreServices.framework/Frameworks/
MetaData.frameworks/Resources/mdimport -f /Library/WebServer/
Documents/example-vhost/
The “-f option is necessary to force the mdimport tools to process the contents of the
specified folder. Note that it may take some time to import large amounts of content.
See the man page for the mdimport tool for more details.
A variety of mdimporter extensions are preinstalled for most common content formats.
If you have custom document formats, they may not be supported.
Step 3: Enable the mod_spotlight_apple module
Use the Modules pane in Server Admin for your server to enable mod_spotlight_apple
and make sure web service is running.
Step 4: Copy the template.spotlight file
Copy the template.spotlight file from /Library/WebServer/Documents into the
Document Root of each virtual host for which you want the Spotlight search to be
available. You may customize the title, maximum allowed hits, and other aspects of the
presentation by modifying a copy of this file.
Step 5: Advise web clients to use “.spotlight” in the URL
To access the search capability, your web clients must append “.spotlight” to the URL
for virtual hosts. A sample URL is:
httpd:/vhost1.example.com/.spotlight
This present a simple search page that searches the contents of the DocumentRoot for
the virtual host. Results are sorted with the most relevant hits first, although no
relevance score is presented.
Connecting to Your Website
Once you configure your website, it’s a good idea to view the site with a web browser
to verify that everything appears as intended.
Vista de pagina 41
1 2 ... 37 38 39 40 41 42 43 44 45 46 47 ... 82 83

Comentarios a estos manuales

Sin comentarios