logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: spiceworks apache
Author
twinsouls823



Joined: 03 Nov 2013
Posts: 2
Location: baton rouge la

PostPosted: Sun 03 Nov '13 21:58    Post subject: spiceworks apache Reply with quote

spiceworks has a built in apache that only works for spiceworks

It's a free download in case anyone would like to real time edit. I'd like to install a full version of apache into the httpd folder but use the spicework's httpd.conf file to get spiceworks running with it. This would allow me to have sub directories as the current version only works with spiceworks. I tried this myself and it didn't work by just copying it over.

I'd like to know what I need to change in the httpd.conf file so that the full version of apache runs with it.

Apache runs fine in the folder but when I use the native httpd.conf file it doesn't start so something up with it.


Last edited by twinsouls823 on Sun 03 Nov '13 22:11; edited 2 times in total
Back to top
twinsouls823



Joined: 03 Nov 2013
Posts: 2
Location: baton rouge la

PostPosted: Sun 03 Nov '13 22:06    Post subject: httpd.conf Reply with quote

This is the spiceworks code that works fine in the spice work's version of apache. How can this file work with "httpd-2.2.25-win32-x86-openssl-0.9.8y"

Code:
ServerRoot "D:/Spiceworks/httpd"
ServerTokens Min

Listen 80
TraceEnable off
UseCanonicalPhysicalPort On
AllowEncodedSlashes On
EnableSendfile Off
EnableMMAP Off

ThreadsPerChild 150
Win32DisableAcceptEx


PidFile "log/httpd.pid"

LoadModule log_config_module modules/mod_log_config.so
LoadModule log_rotate_module modules/mod_log_rotate.so
LoadModule mime_module modules/mod_mime.so
LoadModule negotiation_module modules/mod_negotiation.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule alias_module modules/mod_alias.so
LoadModule cache_module modules/mod_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so
LoadModule expires_module modules/mod_expires.so
LoadModule ssl_module modules/mod_ssl.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so

LoadModule authn_default_module modules/mod_authn_default.so
LoadModule authz_host_module modules/mod_authz_host.so
LoadModule headers_module modules/mod_headers.so

# uncomment the following to enable compression from server to client
# depending on your network, this may increase performance
#LoadModule deflate_module modules/mod_deflate.so

# for debugging
#LoadModule dumpio_module modules/mod_dumpio.so

# Restrictive default access configuration
<Directory />
    AllowOverride None
    Order deny,allow
    Deny from all
</Directory>

# No directory overrides are allowed in the rest of this config, but should
# someone customize it, don't allow download of the config files
<FilesMatch "^\.ht">
    Order allow,deny
    Deny from all
    Satisfy All
</FilesMatch>

# server logging
# values: debug, info, notice, warn, error, crit, alert, emerg.
LogLevel warn
ErrorLog "log/error.log"

<IfModule dumpio_module>
  # Full request logging
  # Also change LogLevel above
  DumpIOInput On
  DumpIOLogLevel debug
</IfModule>

<IfModule log_config_module>
    # CustomLog formats
    LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
    LogFormat "%h %l %u %t \"%r\" %>s %b" common

    # Use combined logging by default
    CustomLog "log/access.log" combined
</IfModule>

<IfModule log_rotate_module>
    RotateLogs On
    RotateLogsLocalTime On
    RotateInterval 86400
</IfModule>

# for debugging rewrites
#RewriteLog "log/rewrite.log"
#RewriteLogLevel 5

# If not specified or undetermined by mime_module
DefaultType text/plain

<IfModule mime_module>
    TypesConfig conf/mime.types
    AddType application/x-compress .Z
    AddType application/x-gzip .gz .tgz
   AddType application/x-httpd-php .php
</IfModule>

<IfModule deflate_module>
    AddOutputFilterByType DEFLATE text/html text/plain text/xml application/xml application/xhtml+xml text/javascript application/x-javascript text/css
</IfModule>

<IfModule mem_cache_module>
    CacheEnable mem /
    CacheIgnoreHeaders Set-Cookie
    MCacheSize 50000
    MCacheMaxObjectCount 1009
    MCacheMinObjectSize 1
</IfModule>


# client-side caching for assets
<IfModule expires_module>
    ExpiresActive On
    # 10 minutes by default
    <FilesMatch "(i?)\.(ico|gif|jpe?g|png|html|css(\.gz)?|js(\.gz)?)$">
        ExpiresDefault "access plus 10 minutes"
    </FilesMatch>
    # 1 year for assets with cache-buster ("labeled" using location prefix in rewrite rules below)
    <Location "/.asset/">
        ExpiresDefault "access plus 1 year"
    </Location>
</IfModule>

# error documents
ErrorDocument 404 /404.html
ErrorDocument 500 /500.html
ErrorDocument 503 /503.html
ErrorDocument 502 /500.html
ErrorDocument 504 /503.html
ProxyErrorOverride Off

<IfModule proxy_scgi_module>
    Include conf/scgi_proxy.conf
</IfModule>


Alias /.asset "D:/Spiceworks/pkg/gems/spiceworks_public-7.0.01308"



<Proxy http://static.spiceworks.com >
    ProxySet retry=0 max=4 smax=1 ttl=15 connectiontimeout=10 acquire=30000 timeout=30
</Proxy>
<Proxy http://community.spiceworks.com >
    ProxySet retry=0 max=4 smax=1 ttl=15 connectiontimeout=10 acquire=30000 timeout=30
</Proxy>


DocumentRoot "D:/Spiceworks/pkg/gems/spiceworks_public-7.0.01308"
<Directory "D:/Spiceworks/pkg/gems/spiceworks_public-7.0.01308">

    Options FollowSymLinks ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all

    RewriteEngine On

    <IfModule expires_module>
        # find assets with cache-buster (e.g. "filename?123456")
        # label with location ".asset" and pass through (PT) block above to blow out the client-side expires time
        RewriteCond %{REQUEST_FILENAME} -f                                     
        RewriteCond %{REQUEST_URI} \.(ico|gif|jpe?g|png|html|css|js)$ [NC]     
        RewriteCond %{QUERY_STRING} ^[0-9]+$                                   
        RewriteRule . .asset%{REQUEST_URI}?asset [QSA,NS,PT]                   
    </IfModule>

   
    # proxy to community server to pull in community content
    RewriteRule ^content_points/cdn/(.*) http://static.spiceworks.com/$1 [QSA,NS,L,P]
    RewriteRule ^content_points/pass/(.*) http://community.spiceworks.com/$1?app_render=true&product_version=7.0.01308 [QSA,NS,L,P]
    RewriteRule ^content_points/([^/]+) http://community.spiceworks.com/app/deliveries/$1?product_version=7.0.01308 [QSA,NS,L,P]
   

    # tray opens up to /splash or /first_splash
    # this is just a static file
    RewriteRule ^(first_splash|splash)$ splash.html [NS,L]

    # redirect non files to rails
#    RewriteRule ^([^.]+)$ $1.html [QSA]
    RewriteCond %{REQUEST_FILENAME} !-f
   
    <IfModule proxy_scgi_module>
      RewriteRule .? .scgi%{REQUEST_URI} [E=X_HTTP_AUTHORIZATION:%{HTTP:Authorization},QSA,NS,L]
    </IfModule>

    <IfModule headers_module>
        Header set X-UA-Compatible "IE=Edge,chrome=1"
    </IfModule>
</Directory>




# this section is included only when you run httpdconf with the files
# ssl-cert.pem and ssl-private-key.pem in the ssl subdirectory
<IfModule ssl_module>
    Listen 443
    SSLCompression off

    <VirtualHost *:443 >
        SSLEngine on
        SSLOptions +StrictRequire
        SSLProtocol -ALL +SSLv3 +TLSv1
        SSLCipherSuite HIGH:1023948blaboa
   SSLCertificateChainFile "ssl/gd_bundle-g2.crt"
        SSLCertificateFile "ssl/ourdomain.com.crt"
        SSLCertificateKeyFile "ssl/ourdomain.com.key"
    </VirtualHost>
</IfModule>

#BEGIN PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL
PHPIniDir "D:/PHP"
LoadModule php5_module "D:/PHP/php5apache2_2.dll"
#END PHP INSTALLER EDITS - REMOVE ONLY ON UNINSTALL

Back to top
Steffen
Moderator


Joined: 15 Oct 2005
Posts: 3093
Location: Hilversum, NL, EU

PostPosted: Sun 03 Nov '13 22:33    Post subject: Reply with quote

What version of Apache is spiceworks running ?

Its not only httpd.conf, maybe there are also used conf files in config/extra

What error do you get in Apache error.log and/or Windows Event Viewer, when you copy over.

Steffen

ps.
Do not forget to install the Visual C++ Redistributable Package for httpd-2.2.25-win32-x86-openssl-0.9.8y, see the Readme in the zip.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 04 Nov '13 15:38    Post subject: Reply with quote

it is 2.2.25

Code:

C:\Users\mario\Downloads>spiceworks-httpd.exe -V
Server version: Apache/2.2.25 (Win32)
Server built:   Sep 23 2013 14:12:51
Server's Module Magic Number: 20051115:33
Server loaded:  APR 1.4.8, APR-Util 1.5.2
Compiled using: APR 1.4.8, APR-Util 1.5.2
Architecture:   32-bit
Server MPM:     WinNT
  threaded:     yes (fixed thread count)
    forked:     no
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/winnt"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_HAVE_IPV6 (IPv4-mapped addresses disabled)
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/apache"
 -D DEFAULT_SCOREBOARD="logs/apache_runtime_status"
 -D DEFAULT_ERRORLOG="logs/error.log"
 -D AP_TYPES_CONFIG_FILE="conf/mime.types"
 -D SERVER_CONFIG_FILE="conf/httpd.conf"

C:\Users\mario\Downloads>
Back to top


Reply to topic   Topic: spiceworks apache View previous topic :: View next topic
Post new topic   Forum Index -> Apache