Apache Web Server Aliasing for multiple url giving 404

I am trying to redirect the all the URL starting from /search-engine/* to /var/www/search-engine/dist but the result says not found, I had tried with AliasMatch as shown below

AliasMatch ^/search-engine(.*) /var/www/search-engine/dist

Front-End technology what I am using is Angular. Can any one suggest me where I am missing, I also tried going through many documentation of Apache2.4 but was not able to understand things which would help to reach the result.

Enable Read Only mode in Office Online Server for SharePoint Server 2016

I have successfully integrated Office Online Server for SharePoint Server 2016 and successfully open documents in office online but there is option to edit in browser or open in word option which makes users having edit permission can edit the document.

But my requirement is to give them only read option to those document not edit. So that they can only read in browser. And my question is how to remove edit in browser or open in word option??

server – Rsync re-transfers entire file after title change

According to rsync’s man page:

[Rsync] is famous for its delta-transfer algorithm, which reduces the amount
of data sent over the network by sending only the differences between
the source files and the existing files in the destination.

However, I noticed today that several video files that I had only changed the name of, were re-transferred in their entirety. This seems to contradict the above claim by rsync that it only updates the changes made. Have I made an error in my command that would cause a small text change to the title of a file to cause the re-tranfer of the entire file?

My command:

rsync -avz --delete -e ssh /files/tobe/transferrd server@ 1>>/logs/backup.log

t sql – Reclaiming space after delete statement in SQL Server

I have some tables used in reporting and some of them grow huge with the daily ETL so I have implemented som jobs that delete rows more that x days old. E.g. everyday 10% new data gets added and I delete 10% of the oldest rows in another job.

Do I need to do something for efficiency? Some tables are heaps with nonclustered indexes and some also have clustered indexes. E.g. to I need to rebuild the tables in case of heaps or rebuild index in case of clustered index on the table? If so how often? Most tables are only used once per day and when all joins and calculations are done they get extracted for visualization in a non-live manner.

I know a little about index fragmentation and that one can query fragmentation in percent. How much do I need to worry about the above scenario?

cookies – Is server side CORS protection enough to mitigate CSRF attacks against stateless APIs?

A CORS policy is not sufficient to protect against CSRF attacks in general, but might be in this specific case.

The question is, if the API accepts “simple” request as defined by the CORS specification. These are requests which can be triggered without JavaScript, i.e. by a form upload, embedding an image or similar. In this case the request will be send directly to the server and all what CORS could prevent is that the attacker could read the response. This is thus not sufficient to prevent CSRF, since CSRF about writing the request and thus executing the action at the server.

If the API instead accepts only non-simple requests (for example by requiring a custom HTTP header) then CORS will be a sufficient protection because in this case only a pre-flight request is needed before the actual request and based on the returned CORS policy from this pre-flight request the actual request will not be executed.

sharepoint server – Error when trying to activate the Content Organizer feature on a site

I just bumped into this in Office 365.

There is no need to force activate any hidden features.

The Content Organizer feature fails to activate due to dependencies with other features.

Ensure these features are activated and then content organizer should activate without issues.

SharePoint Server Standard Site Collection features

SharePoint Server Enterprise Site Collection features

sql server – What is the best way to replace an SQL DB with an updated one?

I have an ms-sql server having 3 DB on it (mssql web 2016 server on Win Server 2012 r2). All DB’s on it have relations with each others. It is live and is feeding some web services. I need to update 2 DBs (or all 3) with the actual data. It takes around a week. So, I created a new VPS and a new sql server on it, I created same databases (with the same names and same filenames) on it and I filled them with the new data with no rush.

Now I want to learn what is the best, safest and fastest way to update the live environment.

I plan to do something like this:

  1. Detach the new DBs on new sql server.
  2. Detach the hdd from the new windows server.
  3. Attach the hdd to my current live server.
  4. Detach (or maybe delete ???) the old 2 or 3 databases from the live sql server.
  5. Attach the new databases on newly attached hdd to old live server.

I have some doubts about the logins, relations between the databases, etc…

I need to interrupt the services no more than some minutes. How can I proceed?

I would appreciate with any help.

How to make sure Electrum connects to my private Electrs server and to no other server?

I want to connect my Electrum wallet app to my private Electrs server in my local LAN which is also reachable via onion. I want to just use this one server, no other server. My ~/.electrum/config is

    "alias": "",
    "auto_connect": false,
    "blockchain_preferred_block": {
        "hash": "000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f",
        "height": 0
    "check_updates": true,
    "config_version": 3,
    "gui_last_wallet": "/Users/$USER/.electrum/wallets/default_wallet",
    "is_maximized": false,
    "oneserver": false,
    "proxy": "socks5:",
    "recently_open": [
    "rpcpassword": "",
    "rpcuser": "",
    "server": "something.onion:50002:s",
    "show_channels_tab": true

This seems to work fine in the sense that I am connected. But I have a lot of nodes in my list under the “Network” settings in Electrum. And this is because the oneserver property is set to false. If I try to set it to true in the config manually, Electrum starts and works fine but the config file is reverted to its old state with false in it.

How can I make sure this works?